commit | author | age
|
a18bfa
|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
Z |
2 |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
|
3 |
|
|
4 |
<mapper namespace="com.changhong.epc.form.mapper.tenant.contract.FormContractMassageMapper"> |
|
5 |
<select id="selectOneContract" resultType="java.util.Map"> |
|
6 |
select |
|
7 |
DATAROWNUM |
|
8 |
from |
|
9 |
formdata_{tenantId}_${fromId} |
|
10 |
where |
|
11 |
DATAROWNUM = #{dataRowNum} |
|
12 |
and |
|
13 |
DELETEFLG = 0 |
|
14 |
</select> |
|
15 |
|
|
16 |
<select id="selectContractMoney" resultType="java.util.Map"> |
|
17 |
SELECT |
|
18 |
SUM(${paymentAmount}) AS paymentAmount, |
|
19 |
${paymentStage} AS paymentStage |
|
20 |
FROM |
|
21 |
formdata_{tenantId}_${fromId}_subform |
|
22 |
WHERE |
|
23 |
PARENTDATAROWNUM IN ( |
|
24 |
SELECT |
|
25 |
DATAROWNUM |
|
26 |
FROM |
|
27 |
formdata_{tenantId}_${fromId} |
|
28 |
WHERE |
|
29 |
selectContracts = #{dataRowNum} |
|
30 |
AND processState = 30 |
|
31 |
AND DELETEFLG = 0 |
|
32 |
) |
|
33 |
AND DELETEFLG = 0 |
|
34 |
GROUP BY |
|
35 |
payment_stage |
|
36 |
</select> |
|
37 |
|
|
38 |
|
|
39 |
<select id="selectAllContractMoney" resultType="java.util.Map"> |
|
40 |
SELECT |
|
41 |
SUM(${paymentAmount}) AS paymentAmount, |
|
42 |
${paymentStage} AS paymentStage |
|
43 |
FROM |
|
44 |
formdata_{tenantId}_${fromId}_subform |
|
45 |
WHERE |
|
46 |
PARENTDATAROWNUM IN ( |
|
47 |
SELECT |
|
48 |
DATAROWNUM |
|
49 |
FROM |
|
50 |
formdata_{tenantId}_${fromId} |
|
51 |
WHERE |
|
52 |
DATAROWNUM = #{dataRowNum} |
|
53 |
AND processState = 30 |
|
54 |
AND DELETEFLG = 0 |
|
55 |
) |
|
56 |
AND DELETEFLG = 0 |
|
57 |
GROUP BY |
|
58 |
payment_stage |
|
59 |
</select> |
|
60 |
</mapper> |