Initial commit

This commit is contained in:
南宁网宿科技
2023-06-03 23:56:49 +08:00
commit 912944faea
821 changed files with 74279 additions and 0 deletions
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.tower.mapper.TowerAccessoryMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM tower_accessory a
<where>
<if test="param.accessoryId != null">
AND a.accessory_id = #{param.accessoryId}
</if>
<if test="param.accessoryName != null">
AND a.accessory_name LIKE CONCAT('%', #{param.accessoryName}, '%')
</if>
<if test="param.accessoryCategory != null">
AND a.accessory_category LIKE CONCAT('%', #{param.accessoryCategory}, '%')
</if>
<if test="param.accessoryModel != null">
AND a.accessory_model LIKE CONCAT('%', #{param.accessoryModel}, '%')
</if>
<if test="param.accessorySpecs != null">
AND a.accessory_specs LIKE CONCAT('%', #{param.accessorySpecs}, '%')
</if>
<if test="param.accessoryPrice != null">
AND a.accessory_price = #{param.accessoryPrice}
</if>
<if test="param.accessoryUnit != null">
AND a.accessory_unit LIKE CONCAT('%', #{param.accessoryUnit}, '%')
</if>
<if test="param.accessoryStock != null">
AND a.accessory_stock LIKE CONCAT('%', #{param.accessoryStock}, '%')
</if>
<if test="param.companyName != null">
AND a.company_name LIKE CONCAT('%', #{param.companyName}, '%')
</if>
<if test="param.manufactor != null">
AND a.manufactor LIKE CONCAT('%', #{param.manufactor}, '%')
</if>
<if test="param.manufactorNo != null">
AND a.manufactor_no LIKE CONCAT('%', #{param.manufactorNo}, '%')
</if>
<if test="param.lifeYear != null">
AND a.life_year LIKE CONCAT('%', #{param.lifeYear}, '%')
</if>
<if test="param.factoryDate != null">
AND a.factory_date LIKE CONCAT('%', #{param.factoryDate}, '%')
</if>
<if test="param.scrapDate != null">
AND a.scrap_date LIKE CONCAT('%', #{param.scrapDate}, '%')
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (
a.accessory_name LIKE CONCAT('%', #{param.keywords}, '%')
OR a.accessory_no LIKE CONCAT('%', #{param.keywords}, '%')
OR a.company_name LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerAccessory">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerAccessory">
<include refid="selectSql"></include>
</select>
</mapper>
@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.tower.mapper.TowerEquipmentMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM tower_equipment a
<where>
<if test="param.equipmentId != null">
AND a.equipment_id = #{param.equipmentId}
</if>
<if test="param.name != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%')
</if>
<if test="param.model != null">
AND a.model LIKE CONCAT('%', #{param.model}, '%')
</if>
<if test="param.equipmentNo != null">
AND a.equipment_no LIKE CONCAT('%', #{param.equipmentNo}, '%')
</if>
<if test="param.factoryNo != null">
AND a.factory_no LIKE CONCAT('%', #{param.factoryNo}, '%')
</if>
<if test="param.factoryDate != null">
AND a.factory_date LIKE CONCAT('%', #{param.factoryDate}, '%')
</if>
<if test="param.manufactor != null">
AND a.manufactor LIKE CONCAT('%', #{param.manufactor}, '%')
</if>
<if test="param.lifeYear != null">
AND a.life_year LIKE CONCAT('%', #{param.lifeYear}, '%')
</if>
<if test="param.scrapDate != null">
AND a.scrap_date LIKE CONCAT('%', #{param.scrapDate}, '%')
</if>
<if test="param.licenceNo != null">
AND a.licence_no LIKE CONCAT('%', #{param.licenceNo}, '%')
</if>
<if test="param.company != null">
AND a.company = #{param.company}
</if>
<if test="param.organization != null">
AND a.organization = #{param.organization}
</if>
<if test="param.warehouse != null">
AND a.warehouse = #{param.warehouse}
</if>
<if test="param.source != null">
AND a.source LIKE CONCAT('%', #{param.source}, '%')
</if>
<if test="param.buyDate != null">
AND a.buy_date LIKE CONCAT('%', #{param.buyDate}, '%')
</if>
<if test="param.currentLocation != null">
AND a.current_location LIKE CONCAT('%', #{param.currentLocation}, '%')
</if>
<if test="param.designHeight != null">
AND a.design_height LIKE CONCAT('%', #{param.designHeight}, '%')
</if>
<if test="param.height != null">
AND a.height LIKE CONCAT('%', #{param.height}, '%')
</if>
<if test="param.ratedLoad != null">
AND a.rated_load LIKE CONCAT('%', #{param.ratedLoad}, '%')
</if>
<if test="param.maxRatedLoad != null">
AND a.max_rated_load LIKE CONCAT('%', #{param.maxRatedLoad}, '%')
</if>
<if test="param.files != null">
AND a.files LIKE CONCAT('%', #{param.files}, '%')
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (
a.name LIKE CONCAT('%', #{param.keywords}, '%')
OR a.model LIKE CONCAT('%', #{param.keywords}, '%')
OR a.equipment_no LIKE CONCAT('%', #{param.keywords}, '%')
OR a.company LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerEquipment">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerEquipment">
<include refid="selectSql"></include>
</select>
</mapper>
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.tower.mapper.TowerModelMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM tower_model a
<where>
<if test="param.categoryId != null">
AND a.category_id = #{param.categoryId}
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.parentId != null">
AND a.parent_id = #{param.parentId}
</if>
<if test="param.image != null">
AND a.image LIKE CONCAT('%', #{param.image}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.yearLife != null">
AND a.year_life = #{param.yearLife}
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerModel">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerModel">
<include refid="selectSql"></include>
</select>
</mapper>
@@ -0,0 +1,104 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.tower.mapper.TowerProjectMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM tower_project a
<where>
<if test="param.projectId != null">
AND a.project_id = #{param.projectId}
</if>
<if test="param.projectName != null">
AND a.project_name LIKE CONCAT('%', #{param.projectName}, '%')
</if>
<if test="param.companyName != null">
AND a.company_name LIKE CONCAT('%', #{param.companyName}, '%')
</if>
<if test="param.customerName != null">
AND a.customer_name LIKE CONCAT('%', #{param.customerName}, '%')
</if>
<if test="param.projectRegion != null">
AND a.project_region LIKE CONCAT('%', #{param.projectRegion}, '%')
</if>
<if test="param.projectAddress != null">
AND a.project_address LIKE CONCAT('%', #{param.projectAddress}, '%')
</if>
<if test="param.longitude != null">
AND a.longitude LIKE CONCAT('%', #{param.longitude}, '%')
</if>
<if test="param.latitude != null">
AND a.latitude LIKE CONCAT('%', #{param.latitude}, '%')
</if>
<if test="param.superviseNo != null">
AND a.supervise_no LIKE CONCAT('%', #{param.superviseNo}, '%')
</if>
<if test="param.licenceNo != null">
AND a.licence_no LIKE CONCAT('%', #{param.licenceNo}, '%')
</if>
<if test="param.securityStatus != null">
AND a.security_status LIKE CONCAT('%', #{param.securityStatus}, '%')
</if>
<if test="param.competentDepartment != null">
AND a.competent_department LIKE CONCAT('%', #{param.competentDepartment}, '%')
</if>
<if test="param.dismantlingCompany != null">
AND a.dismantling_company LIKE CONCAT('%', #{param.dismantlingCompany}, '%')
</if>
<if test="param.truckCraneSpecs != null">
AND a.truck_crane_specs LIKE CONCAT('%', #{param.truckCraneSpecs}, '%')
</if>
<if test="param.contract != null">
AND a.contract LIKE CONCAT('%', #{param.contract}, '%')
</if>
<if test="param.director != null">
AND a.director = #{param.director}
</if>
<if test="param.projectDirector != null">
AND a.project_director LIKE CONCAT('%', #{param.projectDirector}, '%')
</if>
<if test="param.projectStatus != null">
AND a.project_status LIKE CONCAT('%', #{param.projectStatus}, '%')
</if>
<if test="param.salesman != null">
AND a.salesman LIKE CONCAT('%', #{param.salesman}, '%')
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerProject">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerProject">
<include refid="selectSql"></include>
</select>
</mapper>
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.tower.mapper.TowerWarehouseMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM tower_warehouse a
<where>
<if test="param.warehouseId != null">
AND a.warehouse_id = #{param.warehouseId}
</if>
<if test="param.warehouseName != null">
AND a.warehouse_name LIKE CONCAT('%', #{param.warehouseName}, '%')
</if>
<if test="param.warehouseKeeper != null">
AND a.warehouse_keeper LIKE CONCAT('%', #{param.warehouseKeeper}, '%')
</if>
<if test="param.warehousePhone != null">
AND a.warehouse_phone LIKE CONCAT('%', #{param.warehousePhone}, '%')
</if>
<if test="param.longitude != null">
AND a.longitude LIKE CONCAT('%', #{param.longitude}, '%')
</if>
<if test="param.latitude != null">
AND a.latitude LIKE CONCAT('%', #{param.latitude}, '%')
</if>
<if test="param.country != null">
AND a.country LIKE CONCAT('%', #{param.country}, '%')
</if>
<if test="param.province != null">
AND a.province LIKE CONCAT('%', #{param.province}, '%')
</if>
<if test="param.city != null">
AND a.city LIKE CONCAT('%', #{param.city}, '%')
</if>
<if test="param.region != null">
AND a.region LIKE CONCAT('%', #{param.region}, '%')
</if>
<if test="param.address != null">
AND a.address LIKE CONCAT('%', #{param.address}, '%')
</if>
<if test="param.regionName != null">
AND a.region_name LIKE CONCAT('%', #{param.regionName}, '%')
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.username != null">
AND a.username = #{param.username}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.title LIKE CONCAT('%', #{param.keywords}, '%')
OR a.warehouse_name = #{param.keywords
OR a.warehouse_keeper = #{param.keywords}
OR a.warehouse_phone = #{param.keywords}
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerWarehouse">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerWarehouse">
<include refid="selectSql"></include>
</select>
</mapper>