新增收款;
新增项目结算书
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<?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.TowerContractFinalSettleLostMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_contract_final_settle_lost a
|
||||
<where>
|
||||
<if test="param.finalSettleLostId != null">
|
||||
AND a.final_settle_lost_id = #{param.finalSettleLostId}
|
||||
</if>
|
||||
<if test="param.finalSettleId != null">
|
||||
AND a.final_settle_id = #{param.finalSettleId}
|
||||
</if>
|
||||
<if test="param.itemId != null">
|
||||
AND a.item_id = #{param.itemId}
|
||||
</if>
|
||||
<if test="param.amount != null">
|
||||
AND a.amount = #{param.amount}
|
||||
</if>
|
||||
<if test="param.num != null">
|
||||
AND a.num = #{param.num}
|
||||
</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.TowerContractFinalSettleLost">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerContractFinalSettleLost">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,56 @@
|
||||
<?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.TowerContractFinalSettleMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_contract_final_settle a
|
||||
<where>
|
||||
<if test="param.contractFinalSettleId != null">
|
||||
AND a.contract_final_settle_id = #{param.contractFinalSettleId}
|
||||
</if>
|
||||
<if test="param.contractId != null">
|
||||
AND a.contract_id = #{param.contractId}
|
||||
</if>
|
||||
<if test="param.settleCompanyId != null">
|
||||
AND a.settle_company_id = #{param.settleCompanyId}
|
||||
</if>
|
||||
<if test="param.signName != null">
|
||||
AND a.sign_name LIKE CONCAT('%', #{param.signName}, '%')
|
||||
</if>
|
||||
<if test="param.signDate != null">
|
||||
AND a.sign_date LIKE CONCAT('%', #{param.signDate}, '%')
|
||||
</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.TowerContractFinalSettle">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerContractFinalSettle">
|
||||
<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.TowerIncomeEquipmentMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_income_equipment a
|
||||
<where>
|
||||
<if test="param.incomeEquipmentId != null">
|
||||
AND a.income_equipment_id = #{param.incomeEquipmentId}
|
||||
</if>
|
||||
<if test="param.incomeId != null">
|
||||
AND a.income_id = #{param.incomeId}
|
||||
</if>
|
||||
<if test="param.equipmentId != null">
|
||||
AND a.equipment_id = #{param.equipmentId}
|
||||
</if>
|
||||
<if test="param.shareAmount != null">
|
||||
AND a.share_amount = #{param.shareAmount}
|
||||
</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.TowerIncomeEquipment">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerIncomeEquipment">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,80 @@
|
||||
<?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.TowerIncomeMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_income a
|
||||
<where>
|
||||
<if test="param.incomeId != null">
|
||||
AND a.income_id = #{param.incomeId}
|
||||
</if>
|
||||
<if test="param.contractId != null">
|
||||
AND a.contract_id = #{param.contractId}
|
||||
</if>
|
||||
<if test="param.incomeNo != null">
|
||||
AND a.income_no LIKE CONCAT('%', #{param.incomeNo}, '%')
|
||||
</if>
|
||||
<if test="param.incomeDate != null">
|
||||
AND a.income_date LIKE CONCAT('%', #{param.incomeDate}, '%')
|
||||
</if>
|
||||
<if test="param.incomeCompanyId != null">
|
||||
AND a.income_company_id = #{param.incomeCompanyId}
|
||||
</if>
|
||||
<if test="param.amount != null">
|
||||
AND a.amount = #{param.amount}
|
||||
</if>
|
||||
<if test="param.incomeType != null">
|
||||
AND a.income_type LIKE CONCAT('%', #{param.incomeType}, '%')
|
||||
</if>
|
||||
<if test="param.expectIncomeDate != null">
|
||||
AND a.expect_income_date LIKE CONCAT('%', #{param.expectIncomeDate}, '%')
|
||||
</if>
|
||||
<if test="param.expectIncomeAmount != null">
|
||||
AND a.expect_income_amount = #{param.expectIncomeAmount}
|
||||
</if>
|
||||
<if test="param.incomeMethod != null">
|
||||
AND a.income_method LIKE CONCAT('%', #{param.incomeMethod}, '%')
|
||||
</if>
|
||||
<if test="param.invoicingNo != null">
|
||||
AND a.invoicing_no LIKE CONCAT('%', #{param.invoicingNo}, '%')
|
||||
</if>
|
||||
<if test="param.fileList != null">
|
||||
AND a.file_list LIKE CONCAT('%', #{param.fileList}, '%')
|
||||
</if>
|
||||
<if test="param.remark != null">
|
||||
AND a.remark LIKE CONCAT('%', #{param.remark}, '%')
|
||||
</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 >= #{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.TowerIncome">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerIncome">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,68 @@
|
||||
<?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.TowerInvoicingMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_invoicing a
|
||||
<where>
|
||||
<if test="param.invoicingId != null">
|
||||
AND a.invoicing_id = #{param.invoicingId}
|
||||
</if>
|
||||
<if test="param.contractId != null">
|
||||
AND a.contract_id = #{param.contractId}
|
||||
</if>
|
||||
<if test="param.invoicingDate != null">
|
||||
AND a.invoicing_date LIKE CONCAT('%', #{param.invoicingDate}, '%')
|
||||
</if>
|
||||
<if test="param.invoicingCompany != null">
|
||||
AND a.invoicing_company LIKE CONCAT('%', #{param.invoicingCompany}, '%')
|
||||
</if>
|
||||
<if test="param.requestName != null">
|
||||
AND a.request_name LIKE CONCAT('%', #{param.requestName}, '%')
|
||||
</if>
|
||||
<if test="param.invoicingAmount != null">
|
||||
AND a.invoicing_amount = #{param.invoicingAmount}
|
||||
</if>
|
||||
<if test="param.invoicingNo != null">
|
||||
AND a.invoicing_no LIKE CONCAT('%', #{param.invoicingNo}, '%')
|
||||
</if>
|
||||
<if test="param.fileList != null">
|
||||
AND a.file_list LIKE CONCAT('%', #{param.fileList}, '%')
|
||||
</if>
|
||||
<if test="param.remark != null">
|
||||
AND a.remark LIKE CONCAT('%', #{param.remark}, '%')
|
||||
</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 >= #{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.TowerInvoicing">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerInvoicing">
|
||||
<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.TowerInvoicingSettleMapper">
|
||||
|
||||
<!-- 关联查询sql -->
|
||||
<sql id="selectSql">
|
||||
SELECT a.*
|
||||
FROM tower_invoicing_settle a
|
||||
<where>
|
||||
<if test="param.invoicingSettleId != null">
|
||||
AND a.invoicing_settle_id = #{param.invoicingSettleId}
|
||||
</if>
|
||||
<if test="param.invoicingId != null">
|
||||
AND a.invoicing_id = #{param.invoicingId}
|
||||
</if>
|
||||
<if test="param.settleId != null">
|
||||
AND a.settle_id = #{param.settleId}
|
||||
</if>
|
||||
<if test="param.shareAmount != null">
|
||||
AND a.share_amount = #{param.shareAmount}
|
||||
</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.TowerInvoicingSettle">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
<!-- 查询全部 -->
|
||||
<select id="selectListRel" resultType="com.gxwebsoft.tower.entity.TowerInvoicingSettle">
|
||||
<include refid="selectSql"></include>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user