Commit 98c31c30 by 王军业

[合同状态多选]

1 parent 071855b3
......@@ -16,12 +16,21 @@ public class CustomerController extends BaseController {
@Autowired
CustomerService customerService;
/**
* 查询顾客列表
* @return
*/
@GetMapping(value="/customers")
@ResponseBody
public Object queryCustomers() {
return customerService.queryCustomer();
}
/**
* 增加新顾客
* @param customer
* @return
*/
@PostMapping(value="/customers")
@ResponseBody
public Object addCustomers(@RequestBody Customer customer) {
......
......@@ -20,12 +20,23 @@ public class DeliverGoodsController extends BaseController{
@Resource
DeliverGoodsService deliverGoodsService;
/**
* 查询某一合同的发货信息
* @param contract_unid
* @return
*/
@GetMapping("/{contract_unid}/delivers")
@ResponseBody
public Object queryDeliverInfo(@PathVariable String contract_unid) {
return deliverGoodsService.queryDeliverGoods(contract_unid);
}
/**
*
* @param deliverGoodsVo
* @param contract_unid
* @return
*/
@PostMapping("/{contract_unid}/delivers")
@ResponseBody
public Object addDeliverInfo(@RequestBody DeliverGoodsVo deliverGoodsVo,@PathVariable String contract_unid) {
......
......@@ -458,6 +458,13 @@
#{salesperson_unid}
</foreach>
</if>
<if test="contract_states !=null">
and
contract_state in
<foreach collection="contract_states" index="index" item="contract_state" open="(" close=")" separator=",">
#{contract_state}
</foreach>
</if>
<if test="project_name__like !=null and project_name__like !=''">
and
tb_contract.project_unid in (select tb_project.project_unid from tb_project where project_name like '%'||#{project_name__like}||'%')
......@@ -622,6 +629,13 @@
#{salesperson_unid}
</foreach>
</if>
<if test="contract_states !=null">
and
contract_state in
<foreach collection="contract_states" index="index" item="contract_state" open="(" close=")" separator=",">
#{contract_state}
</foreach>
</if>
<if test="project_name__like !=null and project_name__like !=''">
and
tb_contract.project_unid in (select tb_project.project_unid from tb_project where project_name like '%'||#{project_name__like}||'%')
......
......@@ -44,6 +44,7 @@ public class SelectVo {
private List<String> salesperson_unids;
private String[] columns;
private String[] contract_states;
/*
* 查询条件
*/
......@@ -227,6 +228,12 @@ public class SelectVo {
public void setColumns(String[] columns) {
this.columns = columns;
}
public String[] getContract_states() {
return contract_states;
}
public void setContract_states(String[] contract_states) {
this.contract_states = contract_states;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!