新增客户管理;
新增合同管理
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
<?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.TowerContractEquipmentMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_contract_equipment a
|
||||
<where>
|
||||
<if test="param.contractEquipmentId != null">
|
||||
AND a.contract_equipment_id = #{param.contractEquipmentId}
|
||||
</if>
|
||||
<if test="param.contractId != null">
|
||||
AND a.contract_id = #{param.contractId}
|
||||
</if>
|
||||
<if test="param.equipmentName != null">
|
||||
AND a.equipment_name LIKE CONCAT('%', #{param.equipmentName}, '%')
|
||||
</if>
|
||||
<if test="param.equipmentModel != null">
|
||||
AND a.equipment_model LIKE CONCAT('%', #{param.equipmentModel}, '%')
|
||||
</if>
|
||||
<if test="param.num != null">
|
||||
AND a.num = #{param.num}
|
||||
</if>
|
||||
<if test="param.planRentMonth != null">
|
||||
AND a.plan_rent_month = #{param.planRentMonth}
|
||||
</if>
|
||||
<if test="param.rentAmount != null">
|
||||
AND a.rent_amount = #{param.rentAmount}
|
||||
</if>
|
||||
<if test="param.inOutAmount != null">
|
||||
AND a.in_out_amount = #{param.inOutAmount}
|
||||
</if>
|
||||
<if test="param.workerAmount != null">
|
||||
AND a.worker_amount = #{param.workerAmount}
|
||||
</if>
|
||||
<if test="param.otherAmount != null">
|
||||
AND a.other_amount = #{param.otherAmount}
|
||||
</if>
|
||||
<if test="param.preBuryAmount != null">
|
||||
AND a.pre_bury_amount = #{param.preBuryAmount}
|
||||
</if>
|
||||
<if test="param.remark != null">
|
||||
AND a.remark LIKE CONCAT('%', #{param.remark}, '%')
|
||||
</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 >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerContractEquipment">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerContractEquipment">
|
||||
<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.TowerContractFileMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_contract_file a
|
||||
<where>
|
||||
<if test="param.contractFileId != null">
|
||||
AND a.contract_file_id = #{param.contractFileId}
|
||||
</if>
|
||||
<if test="param.contractId != null">
|
||||
AND a.contract_id = #{param.contractId}
|
||||
</if>
|
||||
<if test="param.path != null">
|
||||
AND a.path LIKE CONCAT('%', #{param.path}, '%')
|
||||
</if>
|
||||
<if test="param.type != null">
|
||||
AND a.type LIKE CONCAT('%', #{param.type}, '%')
|
||||
</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 >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerContractFile">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerContractFile">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,77 @@
|
||||
<?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.TowerContractMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_contract a
|
||||
<where>
|
||||
<if test="param.contractId != null">
|
||||
AND a.contract_id = #{param.contractId}
|
||||
</if>
|
||||
<if test="param.projectId != null">
|
||||
AND a.project_id = #{param.projectId}
|
||||
</if>
|
||||
<if test="param.companyId != null">
|
||||
AND a.company_id = #{param.companyId}
|
||||
</if>
|
||||
<if test="param.customerId != null">
|
||||
AND a.customer_id = #{param.customerId}
|
||||
</if>
|
||||
<if test="param.customerContact != null">
|
||||
AND a.customer_contact LIKE CONCAT('%', #{param.customerContact}, '%')
|
||||
</if>
|
||||
<if test="param.contactNumber != null">
|
||||
AND a.contact_number LIKE CONCAT('%', #{param.contactNumber}, '%')
|
||||
</if>
|
||||
<if test="param.signDate != null">
|
||||
AND a.sign_date LIKE CONCAT('%', #{param.signDate}, '%')
|
||||
</if>
|
||||
<if test="param.startDate != null">
|
||||
AND a.start_date LIKE CONCAT('%', #{param.startDate}, '%')
|
||||
</if>
|
||||
<if test="param.endDate != null">
|
||||
AND a.end_date LIKE CONCAT('%', #{param.endDate}, '%')
|
||||
</if>
|
||||
<if test="param.contractAmount != null">
|
||||
AND a.contract_amount = #{param.contractAmount}
|
||||
</if>
|
||||
<if test="param.contactAgreeAmount != null">
|
||||
AND a.contact_agree_amount = #{param.contactAgreeAmount}
|
||||
</if>
|
||||
<if test="param.isInStock != null">
|
||||
AND a.is_in_stock = #{param.isInStock}
|
||||
</if>
|
||||
<if test="param.autoSettle != null">
|
||||
AND a.auto_settle = #{param.autoSettle}
|
||||
</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 >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerContract">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerContract">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,71 @@
|
||||
<?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.TowerCustomerMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_customer a
|
||||
<where>
|
||||
<if test="param.customerId != null">
|
||||
AND a.customer_id = #{param.customerId}
|
||||
</if>
|
||||
<if test="param.name != null">
|
||||
AND a.name LIKE CONCAT('%', #{param.name}, '%')
|
||||
</if>
|
||||
<if test="param.fullName != null">
|
||||
AND a.full_name LIKE CONCAT('%', #{param.fullName}, '%')
|
||||
</if>
|
||||
<if test="param.creditCode != null">
|
||||
AND a.credit_code LIKE CONCAT('%', #{param.creditCode}, '%')
|
||||
</if>
|
||||
<if test="param.address != null">
|
||||
AND a.address LIKE CONCAT('%', #{param.address}, '%')
|
||||
</if>
|
||||
<if test="param.contact != null">
|
||||
AND a.contact LIKE CONCAT('%', #{param.contact}, '%')
|
||||
</if>
|
||||
<if test="param.phone != null">
|
||||
AND a.phone LIKE CONCAT('%', #{param.phone}, '%')
|
||||
</if>
|
||||
<if test="param.telPhone != null">
|
||||
AND a.tel_phone LIKE CONCAT('%', #{param.telPhone}, '%')
|
||||
</if>
|
||||
<if test="param.sortNumber != null">
|
||||
AND a.sort_number = #{param.sortNumber}
|
||||
</if>
|
||||
<if test="param.avatar != null">
|
||||
AND a.avatar LIKE CONCAT('%', #{param.avatar}, '%')
|
||||
</if>
|
||||
<if test="param.remark != null">
|
||||
AND a.remark LIKE CONCAT('%', #{param.remark}, '%')
|
||||
</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.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
</if>
|
||||
<if test="param.createTimeStart != null">
|
||||
AND a.create_time >= #{param.createTimeStart}
|
||||
</if>
|
||||
<if test="param.createTimeEnd != null">
|
||||
AND a.create_time <= #{param.createTimeEnd}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<!-- 分页查询 -->
|
||||
<select id="selectPageRel" resultType="com.gxwebsoft.tower.entity.TowerCustomer">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerCustomer">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user