| | |
| | | private String startTime; |
| | | private String endTime; |
| | | private String state; |
| | | private String stateDesc; |
| | | private String contractCode; |
| | | private String objType; |
| | | private String operatorLink; |
| | |
| | | public void setStateName(String stateName) { |
| | | this.stateName = stateName; |
| | | } |
| | | |
| | | public String getStateDesc() { |
| | | return stateDesc; |
| | | } |
| | | |
| | | public void setStateDesc(String stateDesc) { |
| | | this.stateDesc = stateDesc; |
| | | } |
| | | } |
| | |
| | | private String startTime; |
| | | private String endTime; |
| | | private String state; |
| | | private String stateDesc; |
| | | private String contractCode; |
| | | private String objType; |
| | | private String operatorLink; |
| | |
| | | public void setOperatorLink(String operatorLink) { |
| | | this.operatorLink = operatorLink; |
| | | } |
| | | |
| | | public String getStateDesc() { |
| | | return stateDesc; |
| | | } |
| | | |
| | | public void setStateDesc(String stateDesc) { |
| | | this.stateDesc = stateDesc; |
| | | } |
| | | } |
| | |
| | | partyB,t.contract_id,t.contract_id contractId,t.obj_id,t.obj_id objId,t.contract_name,t.contract_name |
| | | contractName,t.start_time,t.start_time startTime,t.end_time,t.end_time |
| | | endTime,t.state,t.contract_code,t.contract_code contractCode,t.obj_type,t.obj_type |
| | | objType,t.operator_link,t.operator_link operatorLink,ct.type_name contractTypeName,td.`name` stateName |
| | | objType,t.operator_link,t.operator_link operatorLink,ct.type_name contractTypeName,td.`name` stateName,t.state_desc stateDesc |
| | | from contract t |
| | | LEFT JOIN contract_type ct on t.contract_type = ct.contract_type_id and ct.status_cd = '0' and ct.store_id = t.store_id |
| | | LEFT JOIN t_dict td on td.status_cd = t.state and td.table_name = 'contract' and td.table_columns = 'state' |
| | |
| | | <if test="state !=null and state != ''"> |
| | | , t.state= #{state} |
| | | </if> |
| | | <if test="stateDesc !=null and stateDesc != ''"> |
| | | , t.state_desc= #{stateDesc} |
| | | </if> |
| | | <if test="contractCode !=null and contractCode != ''"> |
| | | , t.contract_code= #{contractCode} |
| | | </if> |
| | |
| | | } |
| | | |
| | | /** |
| | | * 微信修改消息模板 |
| | | * |
| | | * @param reqJson |
| | | * @return |
| | | * @serviceCode /contract/auditContract |
| | | * @path /app/contract/auditContract |
| | | */ |
| | | @RequestMapping(value = "/auditContract", method = RequestMethod.POST) |
| | | public ResponseEntity<String> auditContract(@RequestBody JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "state", "请求报文中未包含状态"); |
| | | Assert.hasKeyAndValue(reqJson, "stateDesc", "请求报文中未包含状态"); |
| | | Assert.hasKeyAndValue(reqJson, "contractId", "contractId不能为空"); |
| | | |
| | | |
| | | ContractPo contractPo = BeanConvertUtil.covertBean(reqJson, ContractPo.class); |
| | | return updateContractBMOImpl.update(contractPo, reqJson); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * |
| | | * @param reqJson |