| | |
| | | |
| | | private String statusCd = "0"; |
| | | private String contractTypeName; |
| | | private String stateName; |
| | | |
| | | private List<ContractAttrDto> attrs; |
| | | |
| | |
| | | public void setContractTypeName(String contractTypeName) { |
| | | this.contractTypeName = contractTypeName; |
| | | } |
| | | |
| | | public String getStateName() { |
| | | return stateName; |
| | | } |
| | | |
| | | public void setStateName(String stateName) { |
| | | this.stateName = stateName; |
| | | } |
| | | } |
| | |
| | | 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 |
| | | objType,t.operator_link,t.operator_link operatorLink,ct.type_name contractTypeName,td.`name` stateName |
| | | 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' |
| | | where 1 =1 |
| | | <if test="aLink !=null and aLink != ''"> |
| | | and t.a_link= #{aLink} |
| | |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | 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; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | |
| | | @RestController |
| | |
| | | */ |
| | | @RequestMapping(value = "/queryContract", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryContract(@RequestHeader(value = "store-id") String storeId, |
| | | @RequestParam(value = "state") String state, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | ContractDto contractDto = new ContractDto(); |
| | | contractDto.setPage(page); |
| | | contractDto.setRow(row); |
| | | contractDto.setStoreId(storeId); |
| | | contractDto.setState(state); |
| | | return getContractBMOImpl.get(contractDto); |
| | | } |
| | | |