| | |
| | | import com.java110.utils.util.DateUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestHeader; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | |
| | | @RestController |
| | |
| | | return updateContractBMOImpl.update(contractPo, reqJson); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 结束合同 |
| | | * |
| | | * @param reqJson |
| | | * @return |
| | | * @serviceCode /contract/stopContract |
| | | * @path /app/contract/stopContract |
| | | */ |
| | | @RequestMapping(value = "/stopContract", method = RequestMethod.POST) |
| | | public ResponseEntity<String> stopContract(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "contractId", "contractId不能为空"); |
| | | |
| | | ContractPo contractPo = BeanConvertUtil.covertBean(reqJson, ContractPo.class); |
| | | contractPo.setState(ContractDto.STATE_COMPLAINT); |
| | | return updateContractBMOImpl.update(contractPo, reqJson); |
| | | } |
| | | |
| | | /** |
| | | * 微信修改消息模板 |
| | | * |
| | |
| | | return updateContractBMOImpl.update(contractPo, reqJson); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * |
| | |
| | | return deleteContractBMOImpl.delete(contractPo); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * |