This commit is contained in:
2024-01-31 14:55:59 +08:00
parent 2fd8b3d341
commit bfefa9a787
57 changed files with 3938 additions and 0 deletions
@@ -0,0 +1,50 @@
<?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.TowerProjectBuildingMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM tower_project_building a
<where>
<if test="param.buildingId != null">
AND a.building_id = #{param.buildingId}
</if>
<if test="param.projectId != null">
AND a.project_id = #{param.projectId}
</if>
<if test="param.name != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%')
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</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.TowerProjectBuilding">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerProjectBuilding">
<include refid="selectSql"></include>
</select>
</mapper>
@@ -0,0 +1,44 @@
<?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.TowerWorksheetAuditMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM tower_worksheet_audit a
<where>
<if test="param.worksheetAuditId != null">
AND a.worksheet_audit_id = #{param.worksheetAuditId}
</if>
<if test="param.worksheetId != null">
AND a.worksheet_id = #{param.worksheetId}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.refuseReason != null">
AND a.refuse_reason LIKE CONCAT('%', #{param.refuseReason}, '%')
</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.TowerWorksheetAudit">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerWorksheetAudit">
<include refid="selectSql"></include>
</select>
</mapper>
@@ -0,0 +1,50 @@
<?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.TowerWorksheetCarDispatchMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM tower_worksheet_car_dispatch a
<where>
<if test="param.carDispatchId != null">
AND a.car_dispatch_id = #{param.carDispatchId}
</if>
<if test="param.name != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%')
</if>
<if test="param.carPlate != null">
AND a.car_plate LIKE CONCAT('%', #{param.carPlate}, '%')
</if>
<if test="param.phone != null">
AND a.phone LIKE CONCAT('%', #{param.phone}, '%')
</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.contactPhone != null">
AND a.contact_phone LIKE CONCAT('%', #{param.contactPhone}, '%')
</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.TowerWorksheetCarDispatch">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerWorksheetCarDispatch">
<include refid="selectSql"></include>
</select>
</mapper>
@@ -0,0 +1,59 @@
<?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.TowerWorksheetCheckMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM tower_worksheet_check a
<where>
<if test="param.checkId != null">
AND a.check_id = #{param.checkId}
</if>
<if test="param.worksheetId != null">
AND a.worksheet_id = #{param.worksheetId}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.photos != null">
AND a.photos LIKE CONCAT('%', #{param.photos}, '%')
</if>
<if test="param.lat != null">
AND a.lat LIKE CONCAT('%', #{param.lat}, '%')
</if>
<if test="param.lng != null">
AND a.lng LIKE CONCAT('%', #{param.lng}, '%')
</if>
<if test="param.address != null">
AND a.address LIKE CONCAT('%', #{param.address}, '%')
</if>
<if test="param.checkTime != null">
AND a.check_time LIKE CONCAT('%', #{param.checkTime}, '%')
</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.TowerWorksheetCheck">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerWorksheetCheck">
<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.TowerWorksheetDetailMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM tower_worksheet_detail a
<where>
<if test="param.detailId != null">
AND a.detail_id = #{param.detailId}
</if>
<if test="param.worksheetId != null">
AND a.worksheet_id = #{param.worksheetId}
</if>
<if test="param.workType != null">
AND a.work_type = #{param.workType}
</if>
<if test="param.workerType != null">
AND a.worker_type = #{param.workerType}
</if>
<if test="param.equipmentId != null">
AND a.equipment_id = #{param.equipmentId}
</if>
<if test="param.setupLength != null">
AND a.setup_length = #{param.setupLength}
</if>
<if test="param.yearRequest != null">
AND a.year_request = #{param.yearRequest}
</if>
<if test="param.setupHeight != null">
AND a.setup_height = #{param.setupHeight}
</if>
<if test="param.needPaint != null">
AND a.need_paint = #{param.needPaint}
</if>
<if test="param.clingMethod != null">
AND a.cling_method = #{param.clingMethod}
</if>
<if test="param.hasConfirm != null">
AND a.has_confirm = #{param.hasConfirm}
</if>
<if test="param.clingNum != null">
AND a.cling_num = #{param.clingNum}
</if>
<if test="param.sectionNeedExpress != null">
AND a.section_need_express = #{param.sectionNeedExpress}
</if>
<if test="param.sectionNum != null">
AND a.section_num = #{param.sectionNum}
</if>
<if test="param.sectionNeedPaint != null">
AND a.section_need_paint = #{param.sectionNeedPaint}
</if>
<if test="param.removeHeight != null">
AND a.remove_height = #{param.removeHeight}
</if>
<if test="param.intro != null">
AND a.intro LIKE CONCAT('%', #{param.intro}, '%')
</if>
<if test="param.sysWorkerList != null">
AND a.sys_worker_list LIKE CONCAT('%', #{param.sysWorkerList}, '%')
</if>
<if test="param.outComeWorkerList != null">
AND a.out_come_worker_list LIKE CONCAT('%', #{param.outComeWorkerList}, '%')
</if>
<if test="param.classManager != null">
AND a.class_manager = #{param.classManager}
</if>
<if test="param.driver != null">
AND a.driver LIKE CONCAT('%', #{param.driver}, '%')
</if>
<if test="param.carPlate != null">
AND a.car_plate LIKE CONCAT('%', #{param.carPlate}, '%')
</if>
<if test="param.photos != null">
AND a.photos LIKE CONCAT('%', #{param.photos}, '%')
</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.TowerWorksheetDetail">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerWorksheetDetail">
<include refid="selectSql"></include>
</select>
</mapper>
@@ -0,0 +1,65 @@
<?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.TowerWorksheetMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM tower_worksheet a
<where>
<if test="param.worksheetId != null">
AND a.worksheet_id = #{param.worksheetId}
</if>
<if test="param.type != null">
AND a.type = #{param.type}
</if>
<if test="param.startUid != null">
AND a.start_uid = #{param.startUid}
</if>
<if test="param.projectId != null">
AND a.project_id = #{param.projectId}
</if>
<if test="param.planInDate != null">
AND a.plan_in_date LIKE CONCAT('%', #{param.planInDate}, '%')
</if>
<if test="param.receiveDate != null">
AND a.receive_date LIKE CONCAT('%', #{param.receiveDate}, '%')
</if>
<if test="param.productionMangerUid != null">
AND a.production_manger_uid = #{param.productionMangerUid}
</if>
<if test="param.equipmentType != null">
AND a.equipment_type = #{param.equipmentType}
</if>
<if test="param.workType != null">
AND a.work_type = #{param.workType}
</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.TowerWorksheet">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerWorksheet">
<include refid="selectSql"></include>
</select>
</mapper>
@@ -0,0 +1,50 @@
<?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.TowerWorksheetPartsMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM tower_worksheet_parts a
<where>
<if test="param.partsId != null">
AND a.parts_id = #{param.partsId}
</if>
<if test="param.worksheetId != null">
AND a.worksheet_id = #{param.worksheetId}
</if>
<if test="param.parentId != null">
AND a.parent_id = #{param.parentId}
</if>
<if test="param.cateId != null">
AND a.cate_id = #{param.cateId}
</if>
<if test="param.num != null">
AND a.num = #{param.num}
</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.TowerWorksheetParts">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerWorksheetParts">
<include refid="selectSql"></include>
</select>
</mapper>
@@ -0,0 +1,59 @@
<?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.TowerWorksheetSetUpMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM tower_worksheet_set_up a
<where>
<if test="param.setUpId != null">
AND a.set_up_id = #{param.setUpId}
</if>
<if test="param.worksheetId != null">
AND a.worksheet_id = #{param.worksheetId}
</if>
<if test="param.maxSetUpHeight != null">
AND a.max_set_up_height = #{param.maxSetUpHeight}
</if>
<if test="param.setUpHeight != null">
AND a.set_up_height = #{param.setUpHeight}
</if>
<if test="param.clingHeight != null">
AND a.cling_height = #{param.clingHeight}
</if>
<if test="param.bigArmLength != null">
AND a.big_arm_length = #{param.bigArmLength}
</if>
<if test="param.balanceLength != null">
AND a.balance_length = #{param.balanceLength}
</if>
<if test="param.planSetUpCling != null">
AND a.plan_set_up_cling = #{param.planSetUpCling}
</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.TowerWorksheetSetUp">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerWorksheetSetUp">
<include refid="selectSql"></include>
</select>
</mapper>