Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
4abf71e754
|
|
@ -81,4 +81,9 @@ public class BackApplyInfo {
|
|||
* 审核备注
|
||||
*/
|
||||
private String directAuditRemark;
|
||||
private String code;
|
||||
private String backPerson;
|
||||
private String lotId;
|
||||
private String unitId;
|
||||
private String backTime;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -305,12 +305,16 @@
|
|||
<select id="getbackList" resultType="com.bonus.sgzb.app.domain.BackApplyInfo">
|
||||
SELECT
|
||||
bai.id,
|
||||
us.user_name as userName,
|
||||
bai.`code`,
|
||||
bai.back_person as backPerson,
|
||||
bai.phone,
|
||||
bpl.lot_id,
|
||||
bpl.lot_name as lotName,
|
||||
bui.unit_id as unitId,
|
||||
bui.unit_name as unitName,
|
||||
bagi.plan_start_time as planStartTime,
|
||||
bai.back_time as backTime,
|
||||
tt.task_status as taskStatus,
|
||||
tta.agreement_id as agreementId,
|
||||
GROUP_CONCAT(DISTINCT bad.type_id) as typeId,
|
||||
GROUP_CONCAT(CONCAT_WS('/', IFNULL(mt3.type_name, ''))) AS typeName
|
||||
FROM
|
||||
|
|
|
|||
|
|
@ -62,8 +62,9 @@ public class AgreementInfoServiceImpl implements AgreementInfoService {
|
|||
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||
Date nowDate = DateUtils.getNowDate();
|
||||
String format = dateFormat.format(nowDate);
|
||||
String result = format.replace("-", "");
|
||||
int num = agreementInfoMapper.selectNumByMonth(nowDate) + 1;
|
||||
String code = "XY" + format + "-000" + num;
|
||||
String code = "XY" + result + "000" + num;
|
||||
return code;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue