|
@@ -357,14 +357,15 @@
|
|
|
</update>
|
|
|
<select id="selectList" parameterType="java.lang.Long" resultType="com.lightinit.hsdataportal.model.ReceiveListModel">
|
|
|
SELECT
|
|
|
- r.rqrmnt_name,
|
|
|
- r.rqrmnt_type,
|
|
|
- r.publish_by,
|
|
|
- u.`username`userName,
|
|
|
+ r.rqrmnt_name as 'rqrmntName',
|
|
|
+ r.rqrmnt_type as 'rqrmntType',
|
|
|
+ r.publish_by as 'publishBy',
|
|
|
+ u.username as 'userName',
|
|
|
rr.solution,
|
|
|
rr.phone,
|
|
|
- ra.`deadline` deadline,
|
|
|
- ra.expected_quote money
|
|
|
+ ra.deadline,
|
|
|
+ ra.expected_quote as 'money',
|
|
|
+ rr.received_at as 'receivedAt'
|
|
|
FROM
|
|
|
`requirement` r
|
|
|
JOIN `requirement_api` ra ON r.`id` = ra.`id`
|
|
@@ -376,14 +377,15 @@ FROM
|
|
|
WHERE u.id=#{id}
|
|
|
UNION
|
|
|
SELECT
|
|
|
- r.rqrmnt_name,
|
|
|
- r.rqrmnt_type,
|
|
|
- r.publish_by,
|
|
|
- u.`username`userName,
|
|
|
+ r.rqrmnt_name as 'rqrmntName',
|
|
|
+ r.rqrmnt_type as 'rqrmntType',
|
|
|
+ r.publish_by as 'publishBy',
|
|
|
+ u.username as 'userName',
|
|
|
rr.solution,
|
|
|
rr.phone,
|
|
|
- rm.`deadline` deadline,
|
|
|
- rm.money money
|
|
|
+ rm.deadline,
|
|
|
+ rm.money money,
|
|
|
+ rr.received_at as 'receivedAt'
|
|
|
|
|
|
FROM
|
|
|
`requirement` r
|