md
This commit is contained in:
parent
52502efc99
commit
0e3ae79352
@ -1,118 +0,0 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerSettleBillController.java
|
||||
* @author linfso
|
||||
* @date 2024-04-24 05:05:22
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 快递用户结算账单 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisCustomerSettleBill;
|
||||
import com.xdadan.erp.emis.service.IEmisCustomerSettleBillService;
|
||||
|
||||
/**
|
||||
* 快递用户结算账单Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-04-24 05:05:22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisCustomerSettleBill")
|
||||
public class EmisCustomerSettleBillController extends EmisBaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisCustomerSettleBillService emisCustomerSettleBillService;
|
||||
|
||||
/**
|
||||
* 查询快递用户结算账单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerSettleBill:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisCustomerSettleBill emisCustomerSettleBill)
|
||||
{
|
||||
startPage();
|
||||
List<EmisCustomerSettleBill> list = emisCustomerSettleBillService.selectEmisCustomerSettleBillList(emisCustomerSettleBill);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出快递用户结算账单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerSettleBill:export')")
|
||||
@Log(title = "快递用户结算账单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisCustomerSettleBill emisCustomerSettleBill)
|
||||
{
|
||||
List<EmisCustomerSettleBill> list = emisCustomerSettleBillService.selectEmisCustomerSettleBillList(emisCustomerSettleBill);
|
||||
ExcelUtil<EmisCustomerSettleBill> util = new ExcelUtil<EmisCustomerSettleBill>(EmisCustomerSettleBill.class);
|
||||
util.exportExcel(response, list, "快递用户结算账单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取快递用户结算账单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerSettleBill:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisCustomerSettleBillService.selectEmisCustomerSettleBillById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增快递用户结算账单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerSettleBill:add')")
|
||||
@Log(title = "快递用户结算账单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisCustomerSettleBill emisCustomerSettleBill)
|
||||
{
|
||||
return toAjax(emisCustomerSettleBillService.insertEmisCustomerSettleBill(emisCustomerSettleBill));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改快递用户结算账单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerSettleBill:edit')")
|
||||
@Log(title = "快递用户结算账单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisCustomerSettleBill emisCustomerSettleBill)
|
||||
{
|
||||
return toAjax(emisCustomerSettleBillService.updateEmisCustomerSettleBill(emisCustomerSettleBill));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除快递用户结算账单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerSettleBill:remove')")
|
||||
@Log(title = "快递用户结算账单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisCustomerSettleBillService.deleteEmisCustomerSettleBillByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleBillController.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:51
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 结算总账单 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisSettleBill;
|
||||
import com.xdadan.erp.emis.service.IEmisSettleBillService;
|
||||
|
||||
/**
|
||||
* 结算总账单Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:51
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisSettleBill")
|
||||
public class EmisSettleBillController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisSettleBillService emisSettleBillService;
|
||||
|
||||
/**
|
||||
* 查询结算总账单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleBill:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisSettleBill emisSettleBill)
|
||||
{
|
||||
startPage();
|
||||
List<EmisSettleBill> list = emisSettleBillService.selectEmisSettleBillList(emisSettleBill);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleBill
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleBill:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisSettleBill emisSettleBill)
|
||||
{
|
||||
int cnt=emisSettleBillService.checkUnique(emisSettleBill);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出结算总账单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleBill:export')")
|
||||
@Log(title = "结算总账单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisSettleBill emisSettleBill)
|
||||
{
|
||||
List<EmisSettleBill> list = emisSettleBillService.selectEmisSettleBillList(emisSettleBill);
|
||||
ExcelUtil<EmisSettleBill> util = new ExcelUtil<EmisSettleBill>(EmisSettleBill.class);
|
||||
util.exportExcel(response, list, "结算总账单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取结算总账单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleBill:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisSettleBillService.selectEmisSettleBillById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增结算总账单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleBill:add')")
|
||||
@Log(title = "结算总账单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisSettleBill emisSettleBill)
|
||||
{
|
||||
return toAjax(emisSettleBillService.insertEmisSettleBill(emisSettleBill));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改结算总账单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleBill:edit')")
|
||||
@Log(title = "结算总账单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisSettleBill emisSettleBill)
|
||||
{
|
||||
return toAjax(emisSettleBillService.updateEmisSettleBill(emisSettleBill));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除结算总账单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleBill:remove')")
|
||||
@Log(title = "结算总账单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisSettleBillService.deleteEmisSettleBillByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleSubBillController.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:52
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 结算子账单 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisSettleSubBill;
|
||||
import com.xdadan.erp.emis.service.IEmisSettleSubBillService;
|
||||
|
||||
/**
|
||||
* 结算子账单Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:52
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisSettleSubBill")
|
||||
public class EmisSettleSubBillController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisSettleSubBillService emisSettleSubBillService;
|
||||
|
||||
/**
|
||||
* 查询结算子账单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBill:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisSettleSubBill emisSettleSubBill)
|
||||
{
|
||||
startPage();
|
||||
List<EmisSettleSubBill> list = emisSettleSubBillService.selectEmisSettleSubBillList(emisSettleSubBill);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleSubBill
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBill:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisSettleSubBill emisSettleSubBill)
|
||||
{
|
||||
int cnt=emisSettleSubBillService.checkUnique(emisSettleSubBill);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出结算子账单列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBill:export')")
|
||||
@Log(title = "结算子账单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisSettleSubBill emisSettleSubBill)
|
||||
{
|
||||
List<EmisSettleSubBill> list = emisSettleSubBillService.selectEmisSettleSubBillList(emisSettleSubBill);
|
||||
ExcelUtil<EmisSettleSubBill> util = new ExcelUtil<EmisSettleSubBill>(EmisSettleSubBill.class);
|
||||
util.exportExcel(response, list, "结算子账单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取结算子账单详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBill:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisSettleSubBillService.selectEmisSettleSubBillById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增结算子账单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBill:add')")
|
||||
@Log(title = "结算子账单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisSettleSubBill emisSettleSubBill)
|
||||
{
|
||||
return toAjax(emisSettleSubBillService.insertEmisSettleSubBill(emisSettleSubBill));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改结算子账单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBill:edit')")
|
||||
@Log(title = "结算子账单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisSettleSubBill emisSettleSubBill)
|
||||
{
|
||||
return toAjax(emisSettleSubBillService.updateEmisSettleSubBill(emisSettleSubBill));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除结算子账单
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBill:remove')")
|
||||
@Log(title = "结算子账单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisSettleSubBillService.deleteEmisSettleSubBillByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleSubBillFeeitemController.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:53
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 子账单费用明细 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisSettleSubBillFeeitem;
|
||||
import com.xdadan.erp.emis.service.IEmisSettleSubBillFeeitemService;
|
||||
|
||||
/**
|
||||
* 子账单费用明细Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:53
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisSettleSubBillFeeitem")
|
||||
public class EmisSettleSubBillFeeitemController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisSettleSubBillFeeitemService emisSettleSubBillFeeitemService;
|
||||
|
||||
/**
|
||||
* 查询子账单费用明细列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBillFeeitem:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem)
|
||||
{
|
||||
startPage();
|
||||
List<EmisSettleSubBillFeeitem> list = emisSettleSubBillFeeitemService.selectEmisSettleSubBillFeeitemList(emisSettleSubBillFeeitem);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleSubBillFeeitem
|
||||
* @return 数量
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBillFeeitem:list')")
|
||||
@GetMapping("/checkUnique")
|
||||
public AjaxResult checkUnique(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem)
|
||||
{
|
||||
int cnt=emisSettleSubBillFeeitemService.checkUnique(emisSettleSubBillFeeitem);
|
||||
return AjaxResult.success("检查成功",cnt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出子账单费用明细列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBillFeeitem:export')")
|
||||
@Log(title = "子账单费用明细", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisSettleSubBillFeeitem emisSettleSubBillFeeitem)
|
||||
{
|
||||
List<EmisSettleSubBillFeeitem> list = emisSettleSubBillFeeitemService.selectEmisSettleSubBillFeeitemList(emisSettleSubBillFeeitem);
|
||||
ExcelUtil<EmisSettleSubBillFeeitem> util = new ExcelUtil<EmisSettleSubBillFeeitem>(EmisSettleSubBillFeeitem.class);
|
||||
util.exportExcel(response, list, "子账单费用明细数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取子账单费用明细详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBillFeeitem:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisSettleSubBillFeeitemService.selectEmisSettleSubBillFeeitemById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增子账单费用明细
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBillFeeitem:add')")
|
||||
@Log(title = "子账单费用明细", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisSettleSubBillFeeitem emisSettleSubBillFeeitem)
|
||||
{
|
||||
return toAjax(emisSettleSubBillFeeitemService.insertEmisSettleSubBillFeeitem(emisSettleSubBillFeeitem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改子账单费用明细
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBillFeeitem:edit')")
|
||||
@Log(title = "子账单费用明细", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisSettleSubBillFeeitem emisSettleSubBillFeeitem)
|
||||
{
|
||||
return toAjax(emisSettleSubBillFeeitemService.updateEmisSettleSubBillFeeitem(emisSettleSubBillFeeitem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除子账单费用明细
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisSettleSubBillFeeitem:remove')")
|
||||
@Log(title = "子账单费用明细", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisSettleSubBillFeeitemService.deleteEmisSettleSubBillFeeitemByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -1,118 +0,0 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerSettleBill.java
|
||||
* @author linfso
|
||||
* @date 2024-04-24 05:05:21
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 快递用户结算账单 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xdadan.erp.common.annotation.Excel;
|
||||
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName EmisCustomerSettleBill
|
||||
* @Description 快递用户结算账单
|
||||
* @author linfso
|
||||
* @date 2024-04-24 05:05:21
|
||||
*/
|
||||
@Data
|
||||
public class EmisCustomerSettleBill extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 结算账单编号 */
|
||||
private String settleBillNo;
|
||||
/* 结算账期时间范围 */
|
||||
private String settleDateScope;
|
||||
/* 账单月份 202402 */
|
||||
private String settleBillMonth;
|
||||
/* 付款状态 1-已付款 2部分付款 3-未付款 */
|
||||
private String payStatus;
|
||||
/* 应收款金额 */
|
||||
private String recMoney;
|
||||
/* 已收款金额 */
|
||||
private String recedMoney;
|
||||
/* 客户用户ID */
|
||||
private String userId;
|
||||
/* 客户编码 */
|
||||
private String customerCode;
|
||||
/* 客户名称 */
|
||||
private String customerName;
|
||||
/* 结算站点代码 */
|
||||
private String siteCode;
|
||||
/* 结算站点名称 */
|
||||
private String siteName;
|
||||
/* 是否核销 */
|
||||
private String blConfirm;
|
||||
/* 运单号 */
|
||||
private String billCodeDesc;
|
||||
/* 安全金额 */
|
||||
private String satisfyMoney;
|
||||
/* 允许金额 */
|
||||
private String allowanceMoney;
|
||||
/* 抵扣金额 */
|
||||
private String deductionMoney;
|
||||
/* 其他金额 */
|
||||
private String otherMoney;
|
||||
/* 安全原因 */
|
||||
private String satisfyReason;
|
||||
/* 允许原因 */
|
||||
private String allowanceReason;
|
||||
/* 抵扣原因 */
|
||||
private String deductionReason;
|
||||
/* 其他原因 */
|
||||
private String otherReason;
|
||||
/* 开票状态 1-已开票 2-未开票 3-部分开票 */
|
||||
private String openBillStatus;
|
||||
/* 核销状态 */
|
||||
private String blConfirmName;
|
||||
/* 总票数 */
|
||||
private String sendPieceSum;
|
||||
/* 总件数 */
|
||||
private String pieceNumber;
|
||||
/* 总重量 */
|
||||
private String feeWeight;
|
||||
/* 合计金额 */
|
||||
private String sendMoneySum;
|
||||
/* 月结编号 */
|
||||
private String monthlyKnotCode;
|
||||
/* 未结数量 */
|
||||
private String uncollectedAmount;
|
||||
/* 退款金额 */
|
||||
private String refundAmount;
|
||||
/* 创建人 */
|
||||
private String createMan;
|
||||
/* 创建人代码 */
|
||||
private String createManCode;
|
||||
/* 确认日期 */
|
||||
private String confirmDate;
|
||||
/* 确认站点 */
|
||||
private String confirmSite;
|
||||
/* 未确认日期 */
|
||||
private String unConfirmDate;
|
||||
/* 未确认人 */
|
||||
private String unConfirmMan;
|
||||
/* 未确认站点 */
|
||||
private String unConfirmSite;
|
||||
/* 退款金额 */
|
||||
private String refundMoney;
|
||||
/* 确认人 */
|
||||
private String confirmMan;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleBill.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:51
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 结算总账单 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xdadan.erp.common.annotation.Excel;
|
||||
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettleBill
|
||||
* @Description 结算总账单
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:51
|
||||
*/
|
||||
@Data
|
||||
public class EmisSettleBill extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 总结算账单编号 */
|
||||
private String settleBillNo;
|
||||
/* 结算账单名称 */
|
||||
private String settleBillName;
|
||||
/* 结算账单类型 1-现金 2-月结 */
|
||||
private String settleType;
|
||||
/* 结算开始时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date settleStartDate;
|
||||
/* 结算结束时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date settleEndDate;
|
||||
/* 账单月份 202402 */
|
||||
private String billMonth;
|
||||
/* 应收款金额 */
|
||||
private BigDecimal recMoney;
|
||||
/* 已收款金额 */
|
||||
private BigDecimal recedMoney;
|
||||
/* 月结编号 */
|
||||
private String custNo;
|
||||
/* 客户编码 */
|
||||
private String customerCode;
|
||||
/* 客户名称 */
|
||||
private String customerName;
|
||||
/* 结算站点代码 */
|
||||
private String siteCode;
|
||||
/* 结算站点名称 */
|
||||
private String siteName;
|
||||
/* 安全金额 */
|
||||
private BigDecimal satisfyMoney;
|
||||
/* 允许金额 */
|
||||
private BigDecimal allowanceMoney;
|
||||
/* 抵扣金额 */
|
||||
private BigDecimal deductionMoney;
|
||||
/* 其他金额 */
|
||||
private BigDecimal otherMoney;
|
||||
/* 安全原因 */
|
||||
private String satisfyReason;
|
||||
/* 允许原因 */
|
||||
private String allowanceReason;
|
||||
/* 抵扣原因 */
|
||||
private String deductionReason;
|
||||
/* 其他原因 */
|
||||
private String otherReason;
|
||||
/* 开票状态 0-未开票 1-已开票 2-部分开票 */
|
||||
private String openBillStatus;
|
||||
/* 付款状态 0-未付款 1-已付款 2-部分付款 */
|
||||
private String paymentStatus;
|
||||
/* 总票数 */
|
||||
private Integer sendPieceSum;
|
||||
/* 总件数 */
|
||||
private Integer pieceNumber;
|
||||
/* 总重量 */
|
||||
private BigDecimal feeWeight;
|
||||
/* 未结数量 */
|
||||
private BigDecimal uncollectedAmount;
|
||||
/* 合计金额 */
|
||||
private BigDecimal sendMoneySum;
|
||||
/* 退款数量 */
|
||||
private BigDecimal refundAmount;
|
||||
/* 退款金额 */
|
||||
private BigDecimal refundMoney;
|
||||
/* 财务确认状态 0-待确认 1-已确认 2-驳回 */
|
||||
private String blConfirm;
|
||||
/* 财务确认日期 */
|
||||
private String confirmDate;
|
||||
/* 财务确认站点 */
|
||||
private String confirmSite;
|
||||
/* 财务确认人 */
|
||||
private String confirmManCode;
|
||||
/* 站点确认状态 0-待确认 1-已确认 2-驳回 */
|
||||
private String blSiteConfirm;
|
||||
/* 财务确认备注 */
|
||||
private String confirmNote;
|
||||
/* 站点确认日期 */
|
||||
private String siteConfirmDate;
|
||||
/* 站点确认人 */
|
||||
private String siteConfirmManCode;
|
||||
/* 网点确认备注 */
|
||||
private String siteConfirmNote;
|
||||
|
||||
}
|
||||
@ -0,0 +1,84 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleSubBill.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:52
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 结算子账单 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xdadan.erp.common.annotation.Excel;
|
||||
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettleSubBill
|
||||
* @Description 结算子账单
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:52
|
||||
*/
|
||||
@Data
|
||||
public class EmisSettleSubBill extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 分账单号 */
|
||||
private String billNo;
|
||||
/* 父账单号 */
|
||||
private String parentBillNo;
|
||||
/* 总结算账单号 */
|
||||
private String settleBillNo;
|
||||
/* 运单号 */
|
||||
private String billCode;
|
||||
/* 出账时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date billDate;
|
||||
/* 账单费用 */
|
||||
private BigDecimal billFee;
|
||||
/* 费用币种 */
|
||||
private String currency;
|
||||
/* 结算账单类型 1-现金 2-月结 */
|
||||
private String settleType;
|
||||
/* 是否已拆单 0-否 1-是 */
|
||||
private String blSplit;
|
||||
/* 账单月份 202402 */
|
||||
private String billMonth;
|
||||
/* 月结编号 */
|
||||
private String custNo;
|
||||
/* 客户编码 */
|
||||
private String customerCode;
|
||||
/* 客户名称 */
|
||||
private String customerName;
|
||||
/* 财务确认状态 0-待确认 1-已确认 2-驳回 */
|
||||
private String blConfirm;
|
||||
/* 财务确认日期 */
|
||||
private String confirmDate;
|
||||
/* 财务确认站点 */
|
||||
private String confirmSite;
|
||||
/* 财务确认人 */
|
||||
private String confirmManCode;
|
||||
/* 站点确认状态 0-待确认 1-已确认 2-驳回 */
|
||||
private String blSiteConfirm;
|
||||
/* 财务确认备注 */
|
||||
private String confirmNote;
|
||||
/* 站点确认日期 */
|
||||
private String siteConfirmDate;
|
||||
/* 站点确认人 */
|
||||
private String siteConfirmManCode;
|
||||
/* 网点确认备注 */
|
||||
private String siteConfirmNote;
|
||||
|
||||
}
|
||||
@ -0,0 +1,55 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleSubBillFeeitem.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:53
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 子账单费用明细 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.xdadan.erp.common.annotation.Excel;
|
||||
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettleSubBillFeeitem
|
||||
* @Description 子账单费用明细
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:53
|
||||
*/
|
||||
@Data
|
||||
public class EmisSettleSubBillFeeitem extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/* id */
|
||||
private Long id;
|
||||
/* 子账单号 */
|
||||
private String subBillNo;
|
||||
/* 运单号 */
|
||||
private String billCode;
|
||||
/* 费用编码 */
|
||||
private String feeCode;
|
||||
/* 费用名称 */
|
||||
private String feeName;
|
||||
/* 账单费用 */
|
||||
private BigDecimal billFee;
|
||||
/* 原始费用 */
|
||||
private BigDecimal origFee;
|
||||
/* 费用币种 */
|
||||
private String currency;
|
||||
/* 排序 */
|
||||
private Integer orderNum;
|
||||
|
||||
}
|
||||
@ -1,70 +0,0 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerSettleBillMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-04-24 05:05:21
|
||||
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 快递用户结算账单 Mapper 接口 </p>
|
||||
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
|
||||
*/
|
||||
package com.xdadan.erp.emis.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xdadan.erp.emis.domain.EmisCustomerSettleBill;
|
||||
/**
|
||||
* @ClassName EmisCustomerSettleBillMapper
|
||||
* @Description <p> 快递用户结算账单 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-04-24 05:05:21
|
||||
*/
|
||||
public interface EmisCustomerSettleBillMapper extends BaseMapper<EmisCustomerSettleBill>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisCustomerSettleBill selectEmisCustomerSettleBillById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisCustomerSettleBill
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisCustomerSettleBill> selectEmisCustomerSettleBillList(EmisCustomerSettleBill emisCustomerSettleBill);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisCustomerSettleBill
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisCustomerSettleBill(EmisCustomerSettleBill emisCustomerSettleBill);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisCustomerSettleBill
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisCustomerSettleBill(EmisCustomerSettleBill emisCustomerSettleBill);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCustomerSettleBillById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCustomerSettleBillByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleBillMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:51
|
||||
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 结算总账单 Mapper 接口 </p>
|
||||
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
|
||||
*/
|
||||
package com.xdadan.erp.emis.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleBill;
|
||||
/**
|
||||
* @ClassName EmisSettleBillMapper
|
||||
* @Description <p> 结算总账单 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:51
|
||||
*/
|
||||
public interface EmisSettleBillMapper extends BaseMapper<EmisSettleBill>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettleBill selectEmisSettleBillById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisSettleBill
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisSettleBill> selectEmisSettleBillList(EmisSettleBill emisSettleBill);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleBill
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettleBill emisSettleBill);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisSettleBill
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisSettleBill(EmisSettleBill emisSettleBill);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisSettleBill
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisSettleBill(EmisSettleBill emisSettleBill);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleBillById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleBillByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleSubBillFeeitemMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:53
|
||||
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 子账单费用明细 Mapper 接口 </p>
|
||||
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
|
||||
*/
|
||||
package com.xdadan.erp.emis.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleSubBillFeeitem;
|
||||
/**
|
||||
* @ClassName EmisSettleSubBillFeeitemMapper
|
||||
* @Description <p> 子账单费用明细 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:53
|
||||
*/
|
||||
public interface EmisSettleSubBillFeeitemMapper extends BaseMapper<EmisSettleSubBillFeeitem>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettleSubBillFeeitem selectEmisSettleSubBillFeeitemById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisSettleSubBillFeeitem
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisSettleSubBillFeeitem> selectEmisSettleSubBillFeeitemList(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleSubBillFeeitem
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisSettleSubBillFeeitem
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisSettleSubBillFeeitem(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisSettleSubBillFeeitem
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisSettleSubBillFeeitem(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleSubBillFeeitemById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleSubBillFeeitemByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleSubBillMapper.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:52
|
||||
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 结算子账单 Mapper 接口 </p>
|
||||
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
|
||||
*/
|
||||
package com.xdadan.erp.emis.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleSubBill;
|
||||
/**
|
||||
* @ClassName EmisSettleSubBillMapper
|
||||
* @Description <p> 结算子账单 Mapper 接口 </p>
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:52
|
||||
*/
|
||||
public interface EmisSettleSubBillMapper extends BaseMapper<EmisSettleSubBill>
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettleSubBill selectEmisSettleSubBillById(Long id);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param emisSettleSubBill
|
||||
* @return 集合
|
||||
*/
|
||||
public List<EmisSettleSubBill> selectEmisSettleSubBillList(EmisSettleSubBill emisSettleSubBill);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleSubBill
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettleSubBill emisSettleSubBill);
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param emisSettleSubBill
|
||||
* @return
|
||||
*/
|
||||
public int insertEmisSettleSubBill(EmisSettleSubBill emisSettleSubBill);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*
|
||||
* @param emisSettleSubBill
|
||||
* @return
|
||||
*/
|
||||
public int updateEmisSettleSubBill(EmisSettleSubBill emisSettleSubBill);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @param id 主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleSubBillById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleSubBillByIds(Long[] ids);
|
||||
}
|
||||
@ -1,69 +0,0 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerSettleBillService.java
|
||||
* @author linfso
|
||||
* @date 2024-04-24 05:05:22
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 快递用户结算账单 服务类接口 </p>
|
||||
*/
|
||||
package com.xdadan.erp.emis.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xdadan.erp.emis.domain.EmisCustomerSettleBill;
|
||||
|
||||
/**
|
||||
* @ClassName EmisCustomerSettleBillService
|
||||
* @Description 快递用户结算账单
|
||||
* @author linfso
|
||||
* @date 2024-04-24 05:05:22
|
||||
*/
|
||||
public interface IEmisCustomerSettleBillService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisCustomerSettleBill selectEmisCustomerSettleBillById(Long id);
|
||||
|
||||
/**
|
||||
* 查询快递用户结算账单列表
|
||||
*
|
||||
* @param emisCustomerSettleBill 快递用户结算账单
|
||||
* @return 快递用户结算账单集合
|
||||
*/
|
||||
public List<EmisCustomerSettleBill> selectEmisCustomerSettleBillList(EmisCustomerSettleBill emisCustomerSettleBill);
|
||||
|
||||
/**
|
||||
* 新增快递用户结算账单
|
||||
*
|
||||
* @param emisCustomerSettleBill 快递用户结算账单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisCustomerSettleBill(EmisCustomerSettleBill emisCustomerSettleBill);
|
||||
|
||||
/**
|
||||
* 修改快递用户结算账单
|
||||
*
|
||||
* @param emisCustomerSettleBill 快递用户结算账单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisCustomerSettleBill(EmisCustomerSettleBill emisCustomerSettleBill);
|
||||
|
||||
/**
|
||||
* 批量删除快递用户结算账单
|
||||
*
|
||||
* @param ids 需要删除的快递用户结算账单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCustomerSettleBillByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除快递用户结算账单信息
|
||||
*
|
||||
* @param id 快递用户结算账单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisCustomerSettleBillById(Long id);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleBillService.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:51
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 结算总账单 服务类接口 </p>
|
||||
*/
|
||||
package com.xdadan.erp.emis.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleBill;
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettleBillService
|
||||
* @Description 结算总账单
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:51
|
||||
*/
|
||||
public interface IEmisSettleBillService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettleBill selectEmisSettleBillById(Long id);
|
||||
|
||||
/**
|
||||
* 查询结算总账单列表
|
||||
*
|
||||
* @param emisSettleBill 结算总账单
|
||||
* @return 结算总账单集合
|
||||
*/
|
||||
public List<EmisSettleBill> selectEmisSettleBillList(EmisSettleBill emisSettleBill);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleBill
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettleBill emisSettleBill);
|
||||
|
||||
/**
|
||||
* 新增结算总账单
|
||||
*
|
||||
* @param emisSettleBill 结算总账单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisSettleBill(EmisSettleBill emisSettleBill);
|
||||
|
||||
/**
|
||||
* 修改结算总账单
|
||||
*
|
||||
* @param emisSettleBill 结算总账单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisSettleBill(EmisSettleBill emisSettleBill);
|
||||
|
||||
/**
|
||||
* 批量删除结算总账单
|
||||
*
|
||||
* @param ids 需要删除的结算总账单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleBillByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除结算总账单信息
|
||||
*
|
||||
* @param id 结算总账单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleBillById(Long id);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleSubBillFeeitemService.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:53
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 子账单费用明细 服务类接口 </p>
|
||||
*/
|
||||
package com.xdadan.erp.emis.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleSubBillFeeitem;
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettleSubBillFeeitemService
|
||||
* @Description 子账单费用明细
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:53
|
||||
*/
|
||||
public interface IEmisSettleSubBillFeeitemService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettleSubBillFeeitem selectEmisSettleSubBillFeeitemById(Long id);
|
||||
|
||||
/**
|
||||
* 查询子账单费用明细列表
|
||||
*
|
||||
* @param emisSettleSubBillFeeitem 子账单费用明细
|
||||
* @return 子账单费用明细集合
|
||||
*/
|
||||
public List<EmisSettleSubBillFeeitem> selectEmisSettleSubBillFeeitemList(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleSubBillFeeitem
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem);
|
||||
|
||||
/**
|
||||
* 新增子账单费用明细
|
||||
*
|
||||
* @param emisSettleSubBillFeeitem 子账单费用明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisSettleSubBillFeeitem(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem);
|
||||
|
||||
/**
|
||||
* 修改子账单费用明细
|
||||
*
|
||||
* @param emisSettleSubBillFeeitem 子账单费用明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisSettleSubBillFeeitem(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem);
|
||||
|
||||
/**
|
||||
* 批量删除子账单费用明细
|
||||
*
|
||||
* @param ids 需要删除的子账单费用明细主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleSubBillFeeitemByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除子账单费用明细信息
|
||||
*
|
||||
* @param id 子账单费用明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleSubBillFeeitemById(Long id);
|
||||
}
|
||||
@ -0,0 +1,78 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleSubBillService.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:52
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 结算子账单 服务类接口 </p>
|
||||
*/
|
||||
package com.xdadan.erp.emis.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleSubBill;
|
||||
|
||||
/**
|
||||
* @ClassName EmisSettleSubBillService
|
||||
* @Description 结算子账单
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:52
|
||||
*/
|
||||
public interface IEmisSettleSubBillService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public EmisSettleSubBill selectEmisSettleSubBillById(Long id);
|
||||
|
||||
/**
|
||||
* 查询结算子账单列表
|
||||
*
|
||||
* @param emisSettleSubBill 结算子账单
|
||||
* @return 结算子账单集合
|
||||
*/
|
||||
public List<EmisSettleSubBill> selectEmisSettleSubBillList(EmisSettleSubBill emisSettleSubBill);
|
||||
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleSubBill
|
||||
* @return 数量
|
||||
*/
|
||||
public int checkUnique(EmisSettleSubBill emisSettleSubBill);
|
||||
|
||||
/**
|
||||
* 新增结算子账单
|
||||
*
|
||||
* @param emisSettleSubBill 结算子账单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisSettleSubBill(EmisSettleSubBill emisSettleSubBill);
|
||||
|
||||
/**
|
||||
* 修改结算子账单
|
||||
*
|
||||
* @param emisSettleSubBill 结算子账单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmisSettleSubBill(EmisSettleSubBill emisSettleSubBill);
|
||||
|
||||
/**
|
||||
* 批量删除结算子账单
|
||||
*
|
||||
* @param ids 需要删除的结算子账单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleSubBillByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除结算子账单信息
|
||||
*
|
||||
* @param id 结算子账单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmisSettleSubBillById(Long id);
|
||||
}
|
||||
@ -1,104 +0,0 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerSettleBillServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-04-24 05:05:22
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 快递用户结算账单 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xdadan.erp.emis.domain.EmisCustomerSettleBill;
|
||||
import com.xdadan.erp.emis.mapper.EmisCustomerSettleBillMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisCustomerSettleBillService;
|
||||
|
||||
/**
|
||||
* 快递用户结算账单Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-04-24 05:05:22
|
||||
*/
|
||||
@Service
|
||||
public class EmisCustomerSettleBillServiceImpl implements IEmisCustomerSettleBillService
|
||||
{
|
||||
@Autowired
|
||||
private EmisCustomerSettleBillMapper emisCustomerSettleBillMapper;
|
||||
|
||||
/**
|
||||
* 查询快递用户结算账单
|
||||
*
|
||||
* @param id 快递用户结算账单主键
|
||||
* @return 快递用户结算账单
|
||||
*/
|
||||
@Override
|
||||
public EmisCustomerSettleBill selectEmisCustomerSettleBillById(Long id)
|
||||
{
|
||||
return emisCustomerSettleBillMapper.selectEmisCustomerSettleBillById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询快递用户结算账单列表
|
||||
*
|
||||
* @param emisCustomerSettleBill 快递用户结算账单
|
||||
* @return 快递用户结算账单
|
||||
*/
|
||||
@Override
|
||||
public List<EmisCustomerSettleBill> selectEmisCustomerSettleBillList(EmisCustomerSettleBill emisCustomerSettleBill)
|
||||
{
|
||||
return emisCustomerSettleBillMapper.selectEmisCustomerSettleBillList(emisCustomerSettleBill);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增快递用户结算账单
|
||||
*
|
||||
* @param emisCustomerSettleBill 快递用户结算账单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisCustomerSettleBill(EmisCustomerSettleBill emisCustomerSettleBill)
|
||||
{
|
||||
return emisCustomerSettleBillMapper.insertEmisCustomerSettleBill(emisCustomerSettleBill);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改快递用户结算账单
|
||||
*
|
||||
* @param emisCustomerSettleBill 快递用户结算账单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisCustomerSettleBill(EmisCustomerSettleBill emisCustomerSettleBill)
|
||||
{
|
||||
return emisCustomerSettleBillMapper.updateEmisCustomerSettleBill(emisCustomerSettleBill);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除快递用户结算账单
|
||||
*
|
||||
* @param ids 需要删除的快递用户结算账单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisCustomerSettleBillByIds(Long[] ids)
|
||||
{
|
||||
return emisCustomerSettleBillMapper.deleteEmisCustomerSettleBillByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除快递用户结算账单信息
|
||||
*
|
||||
* @param id 快递用户结算账单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisCustomerSettleBillById(Long id)
|
||||
{
|
||||
return emisCustomerSettleBillMapper.deleteEmisCustomerSettleBillById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleBillServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:51
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 结算总账单 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleBill;
|
||||
import com.xdadan.erp.emis.mapper.EmisSettleBillMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisSettleBillService;
|
||||
|
||||
/**
|
||||
* 结算总账单Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:51
|
||||
*/
|
||||
@Service
|
||||
public class EmisSettleBillServiceImpl implements IEmisSettleBillService
|
||||
{
|
||||
@Autowired
|
||||
private EmisSettleBillMapper emisSettleBillMapper;
|
||||
|
||||
/**
|
||||
* 查询结算总账单
|
||||
*
|
||||
* @param id 结算总账单主键
|
||||
* @return 结算总账单
|
||||
*/
|
||||
@Override
|
||||
public EmisSettleBill selectEmisSettleBillById(Long id)
|
||||
{
|
||||
return emisSettleBillMapper.selectEmisSettleBillById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询结算总账单列表
|
||||
*
|
||||
* @param emisSettleBill 结算总账单
|
||||
* @return 结算总账单
|
||||
*/
|
||||
@Override
|
||||
public List<EmisSettleBill> selectEmisSettleBillList(EmisSettleBill emisSettleBill)
|
||||
{
|
||||
return emisSettleBillMapper.selectEmisSettleBillList(emisSettleBill);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleBill
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisSettleBill emisSettleBill)
|
||||
{
|
||||
return emisSettleBillMapper.checkUnique(emisSettleBill);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增结算总账单
|
||||
*
|
||||
* @param emisSettleBill 结算总账单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisSettleBill(EmisSettleBill emisSettleBill)
|
||||
{
|
||||
return emisSettleBillMapper.insertEmisSettleBill(emisSettleBill);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改结算总账单
|
||||
*
|
||||
* @param emisSettleBill 结算总账单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisSettleBill(EmisSettleBill emisSettleBill)
|
||||
{
|
||||
return emisSettleBillMapper.updateEmisSettleBill(emisSettleBill);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除结算总账单
|
||||
*
|
||||
* @param ids 需要删除的结算总账单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettleBillByIds(Long[] ids)
|
||||
{
|
||||
return emisSettleBillMapper.deleteEmisSettleBillByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除结算总账单信息
|
||||
*
|
||||
* @param id 结算总账单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettleBillById(Long id)
|
||||
{
|
||||
return emisSettleBillMapper.deleteEmisSettleBillById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleSubBillFeeitemServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:53
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 子账单费用明细 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleSubBillFeeitem;
|
||||
import com.xdadan.erp.emis.mapper.EmisSettleSubBillFeeitemMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisSettleSubBillFeeitemService;
|
||||
|
||||
/**
|
||||
* 子账单费用明细Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:53
|
||||
*/
|
||||
@Service
|
||||
public class EmisSettleSubBillFeeitemServiceImpl implements IEmisSettleSubBillFeeitemService
|
||||
{
|
||||
@Autowired
|
||||
private EmisSettleSubBillFeeitemMapper emisSettleSubBillFeeitemMapper;
|
||||
|
||||
/**
|
||||
* 查询子账单费用明细
|
||||
*
|
||||
* @param id 子账单费用明细主键
|
||||
* @return 子账单费用明细
|
||||
*/
|
||||
@Override
|
||||
public EmisSettleSubBillFeeitem selectEmisSettleSubBillFeeitemById(Long id)
|
||||
{
|
||||
return emisSettleSubBillFeeitemMapper.selectEmisSettleSubBillFeeitemById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询子账单费用明细列表
|
||||
*
|
||||
* @param emisSettleSubBillFeeitem 子账单费用明细
|
||||
* @return 子账单费用明细
|
||||
*/
|
||||
@Override
|
||||
public List<EmisSettleSubBillFeeitem> selectEmisSettleSubBillFeeitemList(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem)
|
||||
{
|
||||
return emisSettleSubBillFeeitemMapper.selectEmisSettleSubBillFeeitemList(emisSettleSubBillFeeitem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleSubBillFeeitem
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem)
|
||||
{
|
||||
return emisSettleSubBillFeeitemMapper.checkUnique(emisSettleSubBillFeeitem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增子账单费用明细
|
||||
*
|
||||
* @param emisSettleSubBillFeeitem 子账单费用明细
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisSettleSubBillFeeitem(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem)
|
||||
{
|
||||
return emisSettleSubBillFeeitemMapper.insertEmisSettleSubBillFeeitem(emisSettleSubBillFeeitem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改子账单费用明细
|
||||
*
|
||||
* @param emisSettleSubBillFeeitem 子账单费用明细
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisSettleSubBillFeeitem(EmisSettleSubBillFeeitem emisSettleSubBillFeeitem)
|
||||
{
|
||||
return emisSettleSubBillFeeitemMapper.updateEmisSettleSubBillFeeitem(emisSettleSubBillFeeitem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除子账单费用明细
|
||||
*
|
||||
* @param ids 需要删除的子账单费用明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettleSubBillFeeitemByIds(Long[] ids)
|
||||
{
|
||||
return emisSettleSubBillFeeitemMapper.deleteEmisSettleSubBillFeeitemByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除子账单费用明细信息
|
||||
*
|
||||
* @param id 子账单费用明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettleSubBillFeeitemById(Long id)
|
||||
{
|
||||
return emisSettleSubBillFeeitemMapper.deleteEmisSettleSubBillFeeitemById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisSettleSubBillServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:52
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 结算子账单 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xdadan.erp.emis.domain.EmisSettleSubBill;
|
||||
import com.xdadan.erp.emis.mapper.EmisSettleSubBillMapper;
|
||||
import com.xdadan.erp.emis.service.IEmisSettleSubBillService;
|
||||
|
||||
/**
|
||||
* 结算子账单Service业务层处理
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-07-03 18:54:52
|
||||
*/
|
||||
@Service
|
||||
public class EmisSettleSubBillServiceImpl implements IEmisSettleSubBillService
|
||||
{
|
||||
@Autowired
|
||||
private EmisSettleSubBillMapper emisSettleSubBillMapper;
|
||||
|
||||
/**
|
||||
* 查询结算子账单
|
||||
*
|
||||
* @param id 结算子账单主键
|
||||
* @return 结算子账单
|
||||
*/
|
||||
@Override
|
||||
public EmisSettleSubBill selectEmisSettleSubBillById(Long id)
|
||||
{
|
||||
return emisSettleSubBillMapper.selectEmisSettleSubBillById(id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询结算子账单列表
|
||||
*
|
||||
* @param emisSettleSubBill 结算子账单
|
||||
* @return 结算子账单
|
||||
*/
|
||||
@Override
|
||||
public List<EmisSettleSubBill> selectEmisSettleSubBillList(EmisSettleSubBill emisSettleSubBill)
|
||||
{
|
||||
return emisSettleSubBillMapper.selectEmisSettleSubBillList(emisSettleSubBill);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查是否重复
|
||||
*
|
||||
* @param emisSettleSubBill
|
||||
* @return 数量
|
||||
*/
|
||||
@Override
|
||||
public int checkUnique(EmisSettleSubBill emisSettleSubBill)
|
||||
{
|
||||
return emisSettleSubBillMapper.checkUnique(emisSettleSubBill);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增结算子账单
|
||||
*
|
||||
* @param emisSettleSubBill 结算子账单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisSettleSubBill(EmisSettleSubBill emisSettleSubBill)
|
||||
{
|
||||
return emisSettleSubBillMapper.insertEmisSettleSubBill(emisSettleSubBill);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改结算子账单
|
||||
*
|
||||
* @param emisSettleSubBill 结算子账单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmisSettleSubBill(EmisSettleSubBill emisSettleSubBill)
|
||||
{
|
||||
return emisSettleSubBillMapper.updateEmisSettleSubBill(emisSettleSubBill);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除结算子账单
|
||||
*
|
||||
* @param ids 需要删除的结算子账单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettleSubBillByIds(Long[] ids)
|
||||
{
|
||||
return emisSettleSubBillMapper.deleteEmisSettleSubBillByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除结算子账单信息
|
||||
*
|
||||
* @param id 结算子账单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmisSettleSubBillById(Long id)
|
||||
{
|
||||
return emisSettleSubBillMapper.deleteEmisSettleSubBillById(id);
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,287 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xdadan.erp.emis.mapper.EmisCustomerSettleBillMapper">
|
||||
|
||||
<resultMap type="EmisCustomerSettleBill" id="EmisCustomerSettleBillResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="settleBillNo" column="settle_bill_no" />
|
||||
<result property="settleDateScope" column="settle_date_scope" />
|
||||
<result property="settleBillMonth" column="settle_bill_month" />
|
||||
<result property="payStatus" column="pay_status" />
|
||||
<result property="recMoney" column="rec_money" />
|
||||
<result property="recedMoney" column="reced_money" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="customerCode" column="customer_code" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="siteCode" column="site_code" />
|
||||
<result property="siteName" column="site_name" />
|
||||
<result property="blConfirm" column="bl_confirm" />
|
||||
<result property="billCodeDesc" column="bill_code_desc" />
|
||||
<result property="satisfyMoney" column="satisfy_money" />
|
||||
<result property="allowanceMoney" column="allowance_money" />
|
||||
<result property="deductionMoney" column="deduction_money" />
|
||||
<result property="otherMoney" column="other_money" />
|
||||
<result property="satisfyReason" column="satisfy_reason" />
|
||||
<result property="allowanceReason" column="allowance_reason" />
|
||||
<result property="deductionReason" column="deduction_reason" />
|
||||
<result property="otherReason" column="other_reason" />
|
||||
<result property="openBillStatus" column="open_bill_status" />
|
||||
<result property="blConfirmName" column="bl_confirm_name" />
|
||||
<result property="sendPieceSum" column="send_piece_sum" />
|
||||
<result property="pieceNumber" column="piece_number" />
|
||||
<result property="feeWeight" column="fee_weight" />
|
||||
<result property="sendMoneySum" column="send_money_sum" />
|
||||
<result property="monthlyKnotCode" column="monthly_knot_code" />
|
||||
<result property="uncollectedAmount" column="uncollected_amount" />
|
||||
<result property="refundAmount" column="refund_amount" />
|
||||
<result property="createMan" column="create_man" />
|
||||
<result property="createManCode" column="create_man_code" />
|
||||
<result property="confirmDate" column="confirm_date" />
|
||||
<result property="confirmSite" column="confirm_site" />
|
||||
<result property="unConfirmDate" column="un_confirm_date" />
|
||||
<result property="unConfirmMan" column="un_confirm_man" />
|
||||
<result property="unConfirmSite" column="un_confirm_site" />
|
||||
<result property="refundMoney" column="refund_money" />
|
||||
<result property="confirmMan" column="confirm_man" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisCustomerSettleBillVo">
|
||||
select id, settle_bill_no, settle_date_scope, settle_bill_month, pay_status, rec_money, reced_money, user_id, customer_code, customer_name, site_code, site_name, bl_confirm, bill_code_desc, satisfy_money, allowance_money, deduction_money, other_money, satisfy_reason, allowance_reason, deduction_reason, other_reason, open_bill_status, bl_confirm_name, send_piece_sum, piece_number, fee_weight, send_money_sum, monthly_knot_code, uncollected_amount, refund_amount, create_man, create_man_code, confirm_date, confirm_site, un_confirm_date, un_confirm_man, un_confirm_site, refund_money, confirm_man, create_site, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark from emis_customer_settle_bill
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisCustomerSettleBillList" parameterType="EmisCustomerSettleBill" resultMap="EmisCustomerSettleBillResult">
|
||||
<include refid="selectEmisCustomerSettleBillVo"/>
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''"> and settle_bill_no like concat('%', #{settleBillNo}, '%')</if>
|
||||
<if test="settleDateScope != null and settleDateScope != ''"> and settle_date_scope like concat('%', #{settleDateScope}, '%')</if>
|
||||
<if test="settleBillMonth != null and settleBillMonth != ''"> and settle_bill_month like concat('%', #{settleBillMonth}, '%')</if>
|
||||
<if test="payStatus != null and payStatus != ''"> and pay_status like concat('%', #{payStatus}, '%')</if>
|
||||
<if test="recMoney != null and recMoney != ''"> and rec_money like concat('%', #{recMoney}, '%')</if>
|
||||
<if test="recedMoney != null and recedMoney != ''"> and reced_money like concat('%', #{recedMoney}, '%')</if>
|
||||
<if test="userId != null and userId != ''"> and user_id like concat('%', #{userId}, '%')</if>
|
||||
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%', #{customerCode}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="siteCode != null and siteCode != ''"> and site_code like concat('%', #{siteCode}, '%')</if>
|
||||
<if test="siteName != null and siteName != ''"> and site_name like concat('%', #{siteName}, '%')</if>
|
||||
<if test="blConfirm != null and blConfirm != ''"> and bl_confirm like concat('%', #{blConfirm}, '%')</if>
|
||||
<if test="billCodeDesc != null and billCodeDesc != ''"> and bill_code_desc like concat('%', #{billCodeDesc}, '%')</if>
|
||||
<if test="satisfyMoney != null and satisfyMoney != ''"> and satisfy_money like concat('%', #{satisfyMoney}, '%')</if>
|
||||
<if test="allowanceMoney != null and allowanceMoney != ''"> and allowance_money like concat('%', #{allowanceMoney}, '%')</if>
|
||||
<if test="deductionMoney != null and deductionMoney != ''"> and deduction_money like concat('%', #{deductionMoney}, '%')</if>
|
||||
<if test="otherMoney != null and otherMoney != ''"> and other_money like concat('%', #{otherMoney}, '%')</if>
|
||||
<if test="satisfyReason != null and satisfyReason != ''"> and satisfy_reason like concat('%', #{satisfyReason}, '%')</if>
|
||||
<if test="allowanceReason != null and allowanceReason != ''"> and allowance_reason like concat('%', #{allowanceReason}, '%')</if>
|
||||
<if test="deductionReason != null and deductionReason != ''"> and deduction_reason like concat('%', #{deductionReason}, '%')</if>
|
||||
<if test="otherReason != null and otherReason != ''"> and other_reason like concat('%', #{otherReason}, '%')</if>
|
||||
<if test="openBillStatus != null and openBillStatus != ''"> and open_bill_status like concat('%', #{openBillStatus}, '%')</if>
|
||||
<if test="blConfirmName != null and blConfirmName != ''"> and bl_confirm_name like concat('%', #{blConfirmName}, '%')</if>
|
||||
<if test="sendPieceSum != null and sendPieceSum != ''"> and send_piece_sum like concat('%', #{sendPieceSum}, '%')</if>
|
||||
<if test="pieceNumber != null and pieceNumber != ''"> and piece_number like concat('%', #{pieceNumber}, '%')</if>
|
||||
<if test="feeWeight != null and feeWeight != ''"> and fee_weight like concat('%', #{feeWeight}, '%')</if>
|
||||
<if test="sendMoneySum != null and sendMoneySum != ''"> and send_money_sum like concat('%', #{sendMoneySum}, '%')</if>
|
||||
<if test="monthlyKnotCode != null and monthlyKnotCode != ''"> and monthly_knot_code like concat('%', #{monthlyKnotCode}, '%')</if>
|
||||
<if test="uncollectedAmount != null and uncollectedAmount != ''"> and uncollected_amount like concat('%', #{uncollectedAmount}, '%')</if>
|
||||
<if test="refundAmount != null and refundAmount != ''"> and refund_amount like concat('%', #{refundAmount}, '%')</if>
|
||||
<if test="createMan != null and createMan != ''"> and create_man like concat('%', #{createMan}, '%')</if>
|
||||
<if test="createManCode != null and createManCode != ''"> and create_man_code like concat('%', #{createManCode}, '%')</if>
|
||||
<if test="confirmDate != null and confirmDate != ''"> and confirm_date like concat('%', #{confirmDate}, '%')</if>
|
||||
<if test="confirmSite != null and confirmSite != ''"> and confirm_site like concat('%', #{confirmSite}, '%')</if>
|
||||
<if test="unConfirmDate != null and unConfirmDate != ''"> and un_confirm_date like concat('%', #{unConfirmDate}, '%')</if>
|
||||
<if test="unConfirmMan != null and unConfirmMan != ''"> and un_confirm_man like concat('%', #{unConfirmMan}, '%')</if>
|
||||
<if test="unConfirmSite != null and unConfirmSite != ''"> and un_confirm_site like concat('%', #{unConfirmSite}, '%')</if>
|
||||
<if test="refundMoney != null and refundMoney != ''"> and refund_money like concat('%', #{refundMoney}, '%')</if>
|
||||
<if test="confirmMan != null and confirmMan != ''"> and confirm_man like concat('%', #{confirmMan}, '%')</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''"> and create_site_code like concat('%', #{createSiteCode}, '%')</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''"> and modify_site_code like concat('%', #{modifySiteCode}, '%')</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectEmisCustomerSettleBillById" parameterType="Long" resultMap="EmisCustomerSettleBillResult">
|
||||
select id, settle_bill_no, settle_date_scope, settle_bill_month, pay_status, rec_money, reced_money, user_id, customer_code, customer_name, site_code, site_name, bl_confirm, bill_code_desc, satisfy_money, allowance_money, deduction_money, other_money, satisfy_reason, allowance_reason, deduction_reason, other_reason, open_bill_status, bl_confirm_name, send_piece_sum, piece_number, fee_weight, send_money_sum, monthly_knot_code, uncollected_amount, refund_amount, create_man, create_man_code, confirm_date, confirm_site, un_confirm_date, un_confirm_man, un_confirm_site, refund_money, confirm_man, create_site, create_site_code, modify_site_code, del_flag, create_by, create_time, update_by, update_time, remark
|
||||
from emis_customer_settle_bill a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisCustomerSettleBill" parameterType="EmisCustomerSettleBill">
|
||||
insert into emis_customer_settle_bill
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">settle_bill_no,</if>
|
||||
<if test="settleDateScope != null and settleDateScope != ''">settle_date_scope,</if>
|
||||
<if test="settleBillMonth != null and settleBillMonth != ''">settle_bill_month,</if>
|
||||
<if test="payStatus != null and payStatus != ''">pay_status,</if>
|
||||
<if test="recMoney != null and recMoney != ''">rec_money,</if>
|
||||
<if test="recedMoney != null and recedMoney != ''">reced_money,</if>
|
||||
<if test="userId != null and userId != ''">user_id,</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code,</if>
|
||||
<if test="customerName != null and customerName != ''">customer_name,</if>
|
||||
<if test="siteCode != null and siteCode != ''">site_code,</if>
|
||||
<if test="siteName != null and siteName != ''">site_name,</if>
|
||||
<if test="blConfirm != null and blConfirm != ''">bl_confirm,</if>
|
||||
<if test="billCodeDesc != null and billCodeDesc != ''">bill_code_desc,</if>
|
||||
<if test="satisfyMoney != null and satisfyMoney != ''">satisfy_money,</if>
|
||||
<if test="allowanceMoney != null and allowanceMoney != ''">allowance_money,</if>
|
||||
<if test="deductionMoney != null and deductionMoney != ''">deduction_money,</if>
|
||||
<if test="otherMoney != null and otherMoney != ''">other_money,</if>
|
||||
<if test="satisfyReason != null and satisfyReason != ''">satisfy_reason,</if>
|
||||
<if test="allowanceReason != null and allowanceReason != ''">allowance_reason,</if>
|
||||
<if test="deductionReason != null and deductionReason != ''">deduction_reason,</if>
|
||||
<if test="otherReason != null and otherReason != ''">other_reason,</if>
|
||||
<if test="openBillStatus != null and openBillStatus != ''">open_bill_status,</if>
|
||||
<if test="blConfirmName != null and blConfirmName != ''">bl_confirm_name,</if>
|
||||
<if test="sendPieceSum != null and sendPieceSum != ''">send_piece_sum,</if>
|
||||
<if test="pieceNumber != null and pieceNumber != ''">piece_number,</if>
|
||||
<if test="feeWeight != null and feeWeight != ''">fee_weight,</if>
|
||||
<if test="sendMoneySum != null and sendMoneySum != ''">send_money_sum,</if>
|
||||
<if test="monthlyKnotCode != null and monthlyKnotCode != ''">monthly_knot_code,</if>
|
||||
<if test="uncollectedAmount != null and uncollectedAmount != ''">uncollected_amount,</if>
|
||||
<if test="refundAmount != null and refundAmount != ''">refund_amount,</if>
|
||||
<if test="createMan != null and createMan != ''">create_man,</if>
|
||||
<if test="createManCode != null and createManCode != ''">create_man_code,</if>
|
||||
<if test="confirmDate != null and confirmDate != ''">confirm_date,</if>
|
||||
<if test="confirmSite != null and confirmSite != ''">confirm_site,</if>
|
||||
<if test="unConfirmDate != null and unConfirmDate != ''">un_confirm_date,</if>
|
||||
<if test="unConfirmMan != null and unConfirmMan != ''">un_confirm_man,</if>
|
||||
<if test="unConfirmSite != null and unConfirmSite != ''">un_confirm_site,</if>
|
||||
<if test="refundMoney != null and refundMoney != ''">refund_money,</if>
|
||||
<if test="confirmMan != null and confirmMan != ''">confirm_man,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''">create_site_code,</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''">modify_site_code,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">#{settleBillNo},</if>
|
||||
<if test="settleDateScope != null and settleDateScope != ''">#{settleDateScope},</if>
|
||||
<if test="settleBillMonth != null and settleBillMonth != ''">#{settleBillMonth},</if>
|
||||
<if test="payStatus != null and payStatus != ''">#{payStatus},</if>
|
||||
<if test="recMoney != null and recMoney != ''">#{recMoney},</if>
|
||||
<if test="recedMoney != null and recedMoney != ''">#{recedMoney},</if>
|
||||
<if test="userId != null and userId != ''">#{userId},</if>
|
||||
<if test="customerCode != null and customerCode != ''">#{customerCode},</if>
|
||||
<if test="customerName != null and customerName != ''">#{customerName},</if>
|
||||
<if test="siteCode != null and siteCode != ''">#{siteCode},</if>
|
||||
<if test="siteName != null and siteName != ''">#{siteName},</if>
|
||||
<if test="blConfirm != null and blConfirm != ''">#{blConfirm},</if>
|
||||
<if test="billCodeDesc != null and billCodeDesc != ''">#{billCodeDesc},</if>
|
||||
<if test="satisfyMoney != null and satisfyMoney != ''">#{satisfyMoney},</if>
|
||||
<if test="allowanceMoney != null and allowanceMoney != ''">#{allowanceMoney},</if>
|
||||
<if test="deductionMoney != null and deductionMoney != ''">#{deductionMoney},</if>
|
||||
<if test="otherMoney != null and otherMoney != ''">#{otherMoney},</if>
|
||||
<if test="satisfyReason != null and satisfyReason != ''">#{satisfyReason},</if>
|
||||
<if test="allowanceReason != null and allowanceReason != ''">#{allowanceReason},</if>
|
||||
<if test="deductionReason != null and deductionReason != ''">#{deductionReason},</if>
|
||||
<if test="otherReason != null and otherReason != ''">#{otherReason},</if>
|
||||
<if test="openBillStatus != null and openBillStatus != ''">#{openBillStatus},</if>
|
||||
<if test="blConfirmName != null and blConfirmName != ''">#{blConfirmName},</if>
|
||||
<if test="sendPieceSum != null and sendPieceSum != ''">#{sendPieceSum},</if>
|
||||
<if test="pieceNumber != null and pieceNumber != ''">#{pieceNumber},</if>
|
||||
<if test="feeWeight != null and feeWeight != ''">#{feeWeight},</if>
|
||||
<if test="sendMoneySum != null and sendMoneySum != ''">#{sendMoneySum},</if>
|
||||
<if test="monthlyKnotCode != null and monthlyKnotCode != ''">#{monthlyKnotCode},</if>
|
||||
<if test="uncollectedAmount != null and uncollectedAmount != ''">#{uncollectedAmount},</if>
|
||||
<if test="refundAmount != null and refundAmount != ''">#{refundAmount},</if>
|
||||
<if test="createMan != null and createMan != ''">#{createMan},</if>
|
||||
<if test="createManCode != null and createManCode != ''">#{createManCode},</if>
|
||||
<if test="confirmDate != null and confirmDate != ''">#{confirmDate},</if>
|
||||
<if test="confirmSite != null and confirmSite != ''">#{confirmSite},</if>
|
||||
<if test="unConfirmDate != null and unConfirmDate != ''">#{unConfirmDate},</if>
|
||||
<if test="unConfirmMan != null and unConfirmMan != ''">#{unConfirmMan},</if>
|
||||
<if test="unConfirmSite != null and unConfirmSite != ''">#{unConfirmSite},</if>
|
||||
<if test="refundMoney != null and refundMoney != ''">#{refundMoney},</if>
|
||||
<if test="confirmMan != null and confirmMan != ''">#{confirmMan},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''">#{createSiteCode},</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''">#{modifySiteCode},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisCustomerSettleBill" parameterType="EmisCustomerSettleBill">
|
||||
update emis_customer_settle_bill
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="settleBillNo != null and settleBillNo != ''">settle_bill_no = #{settleBillNo},</if>
|
||||
<if test="settleDateScope != null and settleDateScope != ''">settle_date_scope = #{settleDateScope},</if>
|
||||
<if test="settleBillMonth != null and settleBillMonth != ''">settle_bill_month = #{settleBillMonth},</if>
|
||||
<if test="payStatus != null and payStatus != ''">pay_status = #{payStatus},</if>
|
||||
<if test="recMoney != null and recMoney != ''">rec_money = #{recMoney},</if>
|
||||
<if test="recedMoney != null and recedMoney != ''">reced_money = #{recedMoney},</if>
|
||||
<if test="userId != null and userId != ''">user_id = #{userId},</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if>
|
||||
<if test="customerName != null and customerName != ''">customer_name = #{customerName},</if>
|
||||
<if test="siteCode != null and siteCode != ''">site_code = #{siteCode},</if>
|
||||
<if test="siteName != null and siteName != ''">site_name = #{siteName},</if>
|
||||
<if test="blConfirm != null and blConfirm != ''">bl_confirm = #{blConfirm},</if>
|
||||
<if test="billCodeDesc != null and billCodeDesc != ''">bill_code_desc = #{billCodeDesc},</if>
|
||||
<if test="satisfyMoney != null and satisfyMoney != ''">satisfy_money = #{satisfyMoney},</if>
|
||||
<if test="allowanceMoney != null and allowanceMoney != ''">allowance_money = #{allowanceMoney},</if>
|
||||
<if test="deductionMoney != null and deductionMoney != ''">deduction_money = #{deductionMoney},</if>
|
||||
<if test="otherMoney != null and otherMoney != ''">other_money = #{otherMoney},</if>
|
||||
<if test="satisfyReason != null and satisfyReason != ''">satisfy_reason = #{satisfyReason},</if>
|
||||
<if test="allowanceReason != null and allowanceReason != ''">allowance_reason = #{allowanceReason},</if>
|
||||
<if test="deductionReason != null and deductionReason != ''">deduction_reason = #{deductionReason},</if>
|
||||
<if test="otherReason != null and otherReason != ''">other_reason = #{otherReason},</if>
|
||||
<if test="openBillStatus != null and openBillStatus != ''">open_bill_status = #{openBillStatus},</if>
|
||||
<if test="blConfirmName != null and blConfirmName != ''">bl_confirm_name = #{blConfirmName},</if>
|
||||
<if test="sendPieceSum != null and sendPieceSum != ''">send_piece_sum = #{sendPieceSum},</if>
|
||||
<if test="pieceNumber != null and pieceNumber != ''">piece_number = #{pieceNumber},</if>
|
||||
<if test="feeWeight != null and feeWeight != ''">fee_weight = #{feeWeight},</if>
|
||||
<if test="sendMoneySum != null and sendMoneySum != ''">send_money_sum = #{sendMoneySum},</if>
|
||||
<if test="monthlyKnotCode != null and monthlyKnotCode != ''">monthly_knot_code = #{monthlyKnotCode},</if>
|
||||
<if test="uncollectedAmount != null and uncollectedAmount != ''">uncollected_amount = #{uncollectedAmount},</if>
|
||||
<if test="refundAmount != null and refundAmount != ''">refund_amount = #{refundAmount},</if>
|
||||
<if test="createMan != null and createMan != ''">create_man = #{createMan},</if>
|
||||
<if test="createManCode != null and createManCode != ''">create_man_code = #{createManCode},</if>
|
||||
<if test="confirmDate != null and confirmDate != ''">confirm_date = #{confirmDate},</if>
|
||||
<if test="confirmSite != null and confirmSite != ''">confirm_site = #{confirmSite},</if>
|
||||
<if test="unConfirmDate != null and unConfirmDate != ''">un_confirm_date = #{unConfirmDate},</if>
|
||||
<if test="unConfirmMan != null and unConfirmMan != ''">un_confirm_man = #{unConfirmMan},</if>
|
||||
<if test="unConfirmSite != null and unConfirmSite != ''">un_confirm_site = #{unConfirmSite},</if>
|
||||
<if test="refundMoney != null and refundMoney != ''">refund_money = #{refundMoney},</if>
|
||||
<if test="confirmMan != null and confirmMan != ''">confirm_man = #{confirmMan},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="createSiteCode != null and createSiteCode != ''">create_site_code = #{createSiteCode},</if>
|
||||
<if test="modifySiteCode != null and modifySiteCode != ''">modify_site_code = #{modifySiteCode},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisCustomerSettleBillById" parameterType="Long">
|
||||
delete from emis_customer_settle_bill where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisCustomerSettleBillByIds" parameterType="String">
|
||||
delete from emis_customer_settle_bill where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
338
emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml
Normal file
338
emis-biz/src/main/resources/mapper/EmisSettleBillMapper.xml
Normal file
@ -0,0 +1,338 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xdadan.erp.emis.mapper.EmisSettleBillMapper">
|
||||
|
||||
<resultMap type="EmisSettleBill" id="EmisSettleBillResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="settleBillNo" column="settle_bill_no" />
|
||||
<result property="settleBillName" column="settle_bill_name" />
|
||||
<result property="settleType" column="settle_type" />
|
||||
<result property="settleStartDate" column="settle_start_date" />
|
||||
<result property="settleEndDate" column="settle_end_date" />
|
||||
<result property="billMonth" column="bill_month" />
|
||||
<result property="recMoney" column="rec_money" />
|
||||
<result property="recedMoney" column="reced_money" />
|
||||
<result property="custNo" column="cust_no" />
|
||||
<result property="customerCode" column="customer_code" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="siteCode" column="site_code" />
|
||||
<result property="siteName" column="site_name" />
|
||||
<result property="satisfyMoney" column="satisfy_money" />
|
||||
<result property="allowanceMoney" column="allowance_money" />
|
||||
<result property="deductionMoney" column="deduction_money" />
|
||||
<result property="otherMoney" column="other_money" />
|
||||
<result property="satisfyReason" column="satisfy_reason" />
|
||||
<result property="allowanceReason" column="allowance_reason" />
|
||||
<result property="deductionReason" column="deduction_reason" />
|
||||
<result property="otherReason" column="other_reason" />
|
||||
<result property="openBillStatus" column="open_bill_status" />
|
||||
<result property="paymentStatus" column="payment_status" />
|
||||
<result property="sendPieceSum" column="send_piece_sum" />
|
||||
<result property="pieceNumber" column="piece_number" />
|
||||
<result property="feeWeight" column="fee_weight" />
|
||||
<result property="uncollectedAmount" column="uncollected_amount" />
|
||||
<result property="sendMoneySum" column="send_money_sum" />
|
||||
<result property="refundAmount" column="refund_amount" />
|
||||
<result property="refundMoney" column="refund_money" />
|
||||
<result property="blConfirm" column="bl_confirm" />
|
||||
<result property="confirmDate" column="confirm_date" />
|
||||
<result property="confirmSite" column="confirm_site" />
|
||||
<result property="confirmManCode" column="confirm_man_code" />
|
||||
<result property="blSiteConfirm" column="bl_site_confirm" />
|
||||
<result property="confirmNote" column="confirm_note" />
|
||||
<result property="siteConfirmDate" column="site_confirm_date" />
|
||||
<result property="siteConfirmManCode" column="site_confirm_man_code" />
|
||||
<result property="siteConfirmNote" column="site_confirm_note" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisSettleBillVo">
|
||||
select id, settle_bill_no, settle_bill_name, settle_type, settle_start_date, settle_end_date, bill_month, rec_money, reced_money, cust_no, customer_code, customer_name, site_code, site_name, satisfy_money, allowance_money, deduction_money, other_money, satisfy_reason, allowance_reason, deduction_reason, other_reason, open_bill_status, payment_status, send_piece_sum, piece_number, fee_weight, uncollected_amount, send_money_sum, refund_amount, refund_money, bl_confirm, confirm_date, confirm_site, confirm_man_code, bl_site_confirm, confirm_note, site_confirm_date, site_confirm_man_code, site_confirm_note, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_bill
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisSettleBillList" parameterType="EmisSettleBill" resultMap="EmisSettleBillResult">
|
||||
<include refid="selectEmisSettleBillVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''"> and settle_bill_no like concat('%', #{settleBillNo}, '%')</if>
|
||||
<if test="settleBillName != null and settleBillName != ''"> and settle_bill_name like concat('%', #{settleBillName}, '%')</if>
|
||||
<if test="settleType != null and settleType != ''"> and settle_type like concat('%', #{settleType}, '%')</if>
|
||||
<if test="settleStartDate != null "> and settle_start_date = #{settleStartDate}</if>
|
||||
<if test="settleEndDate != null "> and settle_end_date = #{settleEndDate}</if>
|
||||
<if test="billMonth != null and billMonth != ''"> and bill_month like concat('%', #{billMonth}, '%')</if>
|
||||
<if test="recMoney != null "> and rec_money = #{recMoney}</if>
|
||||
<if test="recedMoney != null "> and reced_money = #{recedMoney}</if>
|
||||
<if test="custNo != null and custNo != ''"> and cust_no like concat('%', #{custNo}, '%')</if>
|
||||
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%', #{customerCode}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="siteCode != null and siteCode != ''"> and site_code like concat('%', #{siteCode}, '%')</if>
|
||||
<if test="siteName != null and siteName != ''"> and site_name like concat('%', #{siteName}, '%')</if>
|
||||
<if test="satisfyMoney != null "> and satisfy_money = #{satisfyMoney}</if>
|
||||
<if test="allowanceMoney != null "> and allowance_money = #{allowanceMoney}</if>
|
||||
<if test="deductionMoney != null "> and deduction_money = #{deductionMoney}</if>
|
||||
<if test="otherMoney != null "> and other_money = #{otherMoney}</if>
|
||||
<if test="satisfyReason != null and satisfyReason != ''"> and satisfy_reason like concat('%', #{satisfyReason}, '%')</if>
|
||||
<if test="allowanceReason != null and allowanceReason != ''"> and allowance_reason like concat('%', #{allowanceReason}, '%')</if>
|
||||
<if test="deductionReason != null and deductionReason != ''"> and deduction_reason like concat('%', #{deductionReason}, '%')</if>
|
||||
<if test="otherReason != null and otherReason != ''"> and other_reason like concat('%', #{otherReason}, '%')</if>
|
||||
<if test="openBillStatus != null and openBillStatus != ''"> and open_bill_status like concat('%', #{openBillStatus}, '%')</if>
|
||||
<if test="paymentStatus != null and paymentStatus != ''"> and payment_status like concat('%', #{paymentStatus}, '%')</if>
|
||||
<if test="sendPieceSum != null "> and send_piece_sum = #{sendPieceSum}</if>
|
||||
<if test="pieceNumber != null "> and piece_number = #{pieceNumber}</if>
|
||||
<if test="feeWeight != null "> and fee_weight = #{feeWeight}</if>
|
||||
<if test="uncollectedAmount != null "> and uncollected_amount = #{uncollectedAmount}</if>
|
||||
<if test="sendMoneySum != null "> and send_money_sum = #{sendMoneySum}</if>
|
||||
<if test="refundAmount != null "> and refund_amount = #{refundAmount}</if>
|
||||
<if test="refundMoney != null "> and refund_money = #{refundMoney}</if>
|
||||
<if test="blConfirm != null and blConfirm != ''"> and bl_confirm like concat('%', #{blConfirm}, '%')</if>
|
||||
<if test="confirmDate != null and confirmDate != ''"> and confirm_date like concat('%', #{confirmDate}, '%')</if>
|
||||
<if test="confirmSite != null and confirmSite != ''"> and confirm_site like concat('%', #{confirmSite}, '%')</if>
|
||||
<if test="confirmManCode != null and confirmManCode != ''"> and confirm_man_code like concat('%', #{confirmManCode}, '%')</if>
|
||||
<if test="blSiteConfirm != null and blSiteConfirm != ''"> and bl_site_confirm like concat('%', #{blSiteConfirm}, '%')</if>
|
||||
<if test="confirmNote != null and confirmNote != ''"> and confirm_note like concat('%', #{confirmNote}, '%')</if>
|
||||
<if test="siteConfirmDate != null and siteConfirmDate != ''"> and site_confirm_date like concat('%', #{siteConfirmDate}, '%')</if>
|
||||
<if test="siteConfirmManCode != null and siteConfirmManCode != ''"> and site_confirm_man_code like concat('%', #{siteConfirmManCode}, '%')</if>
|
||||
<if test="siteConfirmNote != null and siteConfirmNote != ''"> and site_confirm_note like concat('%', #{siteConfirmNote}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="checkUnique" parameterType="EmisSettleBill" resultType="int">
|
||||
select count(1) from emis_settle_bill
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and settle_bill_no = #{settleBillNo}
|
||||
and settle_bill_name = #{settleBillName}
|
||||
and settle_type = #{settleType}
|
||||
and settle_start_date = #{settleStartDate}
|
||||
and settle_end_date = #{settleEndDate}
|
||||
and bill_month = #{billMonth}
|
||||
and rec_money = #{recMoney}
|
||||
and reced_money = #{recedMoney}
|
||||
and cust_no = #{custNo}
|
||||
and customer_code = #{customerCode}
|
||||
and customer_name = #{customerName}
|
||||
and site_code = #{siteCode}
|
||||
and site_name = #{siteName}
|
||||
and satisfy_money = #{satisfyMoney}
|
||||
and allowance_money = #{allowanceMoney}
|
||||
and deduction_money = #{deductionMoney}
|
||||
and other_money = #{otherMoney}
|
||||
and satisfy_reason = #{satisfyReason}
|
||||
and allowance_reason = #{allowanceReason}
|
||||
and deduction_reason = #{deductionReason}
|
||||
and other_reason = #{otherReason}
|
||||
and open_bill_status = #{openBillStatus}
|
||||
and payment_status = #{paymentStatus}
|
||||
and send_piece_sum = #{sendPieceSum}
|
||||
and piece_number = #{pieceNumber}
|
||||
and fee_weight = #{feeWeight}
|
||||
and uncollected_amount = #{uncollectedAmount}
|
||||
and send_money_sum = #{sendMoneySum}
|
||||
and refund_amount = #{refundAmount}
|
||||
and refund_money = #{refundMoney}
|
||||
and bl_confirm = #{blConfirm}
|
||||
and confirm_date = #{confirmDate}
|
||||
and confirm_site = #{confirmSite}
|
||||
and confirm_man_code = #{confirmManCode}
|
||||
and bl_site_confirm = #{blSiteConfirm}
|
||||
and confirm_note = #{confirmNote}
|
||||
and site_confirm_date = #{siteConfirmDate}
|
||||
and site_confirm_man_code = #{siteConfirmManCode}
|
||||
and site_confirm_note = #{siteConfirmNote}
|
||||
and remark = #{remark}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and create_site = #{createSite}
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisSettleBillById" parameterType="Long" resultMap="EmisSettleBillResult">
|
||||
select id, settle_bill_no, settle_bill_name, settle_type, settle_start_date, settle_end_date, bill_month, rec_money, reced_money, cust_no, customer_code, customer_name, site_code, site_name, satisfy_money, allowance_money, deduction_money, other_money, satisfy_reason, allowance_reason, deduction_reason, other_reason, open_bill_status, payment_status, send_piece_sum, piece_number, fee_weight, uncollected_amount, send_money_sum, refund_amount, refund_money, bl_confirm, confirm_date, confirm_site, confirm_man_code, bl_site_confirm, confirm_note, site_confirm_date, site_confirm_man_code, site_confirm_note, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_settle_bill a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisSettleBill" parameterType="EmisSettleBill" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_settle_bill
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">settle_bill_no,</if>
|
||||
<if test="settleBillName != null and settleBillName != ''">settle_bill_name,</if>
|
||||
<if test="settleType != null and settleType != ''">settle_type,</if>
|
||||
<if test="settleStartDate != null">settle_start_date,</if>
|
||||
<if test="settleEndDate != null">settle_end_date,</if>
|
||||
<if test="billMonth != null and billMonth != ''">bill_month,</if>
|
||||
<if test="recMoney != null">rec_money,</if>
|
||||
<if test="recedMoney != null">reced_money,</if>
|
||||
<if test="custNo != null and custNo != ''">cust_no,</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code,</if>
|
||||
<if test="customerName != null and customerName != ''">customer_name,</if>
|
||||
<if test="siteCode != null and siteCode != ''">site_code,</if>
|
||||
<if test="siteName != null and siteName != ''">site_name,</if>
|
||||
<if test="satisfyMoney != null">satisfy_money,</if>
|
||||
<if test="allowanceMoney != null">allowance_money,</if>
|
||||
<if test="deductionMoney != null">deduction_money,</if>
|
||||
<if test="otherMoney != null">other_money,</if>
|
||||
<if test="satisfyReason != null and satisfyReason != ''">satisfy_reason,</if>
|
||||
<if test="allowanceReason != null and allowanceReason != ''">allowance_reason,</if>
|
||||
<if test="deductionReason != null and deductionReason != ''">deduction_reason,</if>
|
||||
<if test="otherReason != null and otherReason != ''">other_reason,</if>
|
||||
<if test="openBillStatus != null and openBillStatus != ''">open_bill_status,</if>
|
||||
<if test="paymentStatus != null and paymentStatus != ''">payment_status,</if>
|
||||
<if test="sendPieceSum != null">send_piece_sum,</if>
|
||||
<if test="pieceNumber != null">piece_number,</if>
|
||||
<if test="feeWeight != null">fee_weight,</if>
|
||||
<if test="uncollectedAmount != null">uncollected_amount,</if>
|
||||
<if test="sendMoneySum != null">send_money_sum,</if>
|
||||
<if test="refundAmount != null">refund_amount,</if>
|
||||
<if test="refundMoney != null">refund_money,</if>
|
||||
<if test="blConfirm != null and blConfirm != ''">bl_confirm,</if>
|
||||
<if test="confirmDate != null and confirmDate != ''">confirm_date,</if>
|
||||
<if test="confirmSite != null and confirmSite != ''">confirm_site,</if>
|
||||
<if test="confirmManCode != null and confirmManCode != ''">confirm_man_code,</if>
|
||||
<if test="blSiteConfirm != null and blSiteConfirm != ''">bl_site_confirm,</if>
|
||||
<if test="confirmNote != null and confirmNote != ''">confirm_note,</if>
|
||||
<if test="siteConfirmDate != null and siteConfirmDate != ''">site_confirm_date,</if>
|
||||
<if test="siteConfirmManCode != null and siteConfirmManCode != ''">site_confirm_man_code,</if>
|
||||
<if test="siteConfirmNote != null and siteConfirmNote != ''">site_confirm_note,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">#{settleBillNo},</if>
|
||||
<if test="settleBillName != null and settleBillName != ''">#{settleBillName},</if>
|
||||
<if test="settleType != null and settleType != ''">#{settleType},</if>
|
||||
<if test="settleStartDate != null">#{settleStartDate},</if>
|
||||
<if test="settleEndDate != null">#{settleEndDate},</if>
|
||||
<if test="billMonth != null and billMonth != ''">#{billMonth},</if>
|
||||
<if test="recMoney != null">#{recMoney},</if>
|
||||
<if test="recedMoney != null">#{recedMoney},</if>
|
||||
<if test="custNo != null and custNo != ''">#{custNo},</if>
|
||||
<if test="customerCode != null and customerCode != ''">#{customerCode},</if>
|
||||
<if test="customerName != null and customerName != ''">#{customerName},</if>
|
||||
<if test="siteCode != null and siteCode != ''">#{siteCode},</if>
|
||||
<if test="siteName != null and siteName != ''">#{siteName},</if>
|
||||
<if test="satisfyMoney != null">#{satisfyMoney},</if>
|
||||
<if test="allowanceMoney != null">#{allowanceMoney},</if>
|
||||
<if test="deductionMoney != null">#{deductionMoney},</if>
|
||||
<if test="otherMoney != null">#{otherMoney},</if>
|
||||
<if test="satisfyReason != null and satisfyReason != ''">#{satisfyReason},</if>
|
||||
<if test="allowanceReason != null and allowanceReason != ''">#{allowanceReason},</if>
|
||||
<if test="deductionReason != null and deductionReason != ''">#{deductionReason},</if>
|
||||
<if test="otherReason != null and otherReason != ''">#{otherReason},</if>
|
||||
<if test="openBillStatus != null and openBillStatus != ''">#{openBillStatus},</if>
|
||||
<if test="paymentStatus != null and paymentStatus != ''">#{paymentStatus},</if>
|
||||
<if test="sendPieceSum != null">#{sendPieceSum},</if>
|
||||
<if test="pieceNumber != null">#{pieceNumber},</if>
|
||||
<if test="feeWeight != null">#{feeWeight},</if>
|
||||
<if test="uncollectedAmount != null">#{uncollectedAmount},</if>
|
||||
<if test="sendMoneySum != null">#{sendMoneySum},</if>
|
||||
<if test="refundAmount != null">#{refundAmount},</if>
|
||||
<if test="refundMoney != null">#{refundMoney},</if>
|
||||
<if test="blConfirm != null and blConfirm != ''">#{blConfirm},</if>
|
||||
<if test="confirmDate != null and confirmDate != ''">#{confirmDate},</if>
|
||||
<if test="confirmSite != null and confirmSite != ''">#{confirmSite},</if>
|
||||
<if test="confirmManCode != null and confirmManCode != ''">#{confirmManCode},</if>
|
||||
<if test="blSiteConfirm != null and blSiteConfirm != ''">#{blSiteConfirm},</if>
|
||||
<if test="confirmNote != null and confirmNote != ''">#{confirmNote},</if>
|
||||
<if test="siteConfirmDate != null and siteConfirmDate != ''">#{siteConfirmDate},</if>
|
||||
<if test="siteConfirmManCode != null and siteConfirmManCode != ''">#{siteConfirmManCode},</if>
|
||||
<if test="siteConfirmNote != null and siteConfirmNote != ''">#{siteConfirmNote},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisSettleBill" parameterType="EmisSettleBill">
|
||||
update emis_settle_bill
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="settleBillNo != null and settleBillNo != ''">settle_bill_no = #{settleBillNo},</if>
|
||||
<if test="settleBillName != null and settleBillName != ''">settle_bill_name = #{settleBillName},</if>
|
||||
<if test="settleType != null and settleType != ''">settle_type = #{settleType},</if>
|
||||
<if test="settleStartDate != null">settle_start_date = #{settleStartDate},</if>
|
||||
<if test="settleEndDate != null">settle_end_date = #{settleEndDate},</if>
|
||||
<if test="billMonth != null and billMonth != ''">bill_month = #{billMonth},</if>
|
||||
<if test="recMoney != null">rec_money = #{recMoney},</if>
|
||||
<if test="recedMoney != null">reced_money = #{recedMoney},</if>
|
||||
<if test="custNo != null and custNo != ''">cust_no = #{custNo},</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if>
|
||||
<if test="customerName != null and customerName != ''">customer_name = #{customerName},</if>
|
||||
<if test="siteCode != null and siteCode != ''">site_code = #{siteCode},</if>
|
||||
<if test="siteName != null and siteName != ''">site_name = #{siteName},</if>
|
||||
<if test="satisfyMoney != null">satisfy_money = #{satisfyMoney},</if>
|
||||
<if test="allowanceMoney != null">allowance_money = #{allowanceMoney},</if>
|
||||
<if test="deductionMoney != null">deduction_money = #{deductionMoney},</if>
|
||||
<if test="otherMoney != null">other_money = #{otherMoney},</if>
|
||||
<if test="satisfyReason != null and satisfyReason != ''">satisfy_reason = #{satisfyReason},</if>
|
||||
<if test="allowanceReason != null and allowanceReason != ''">allowance_reason = #{allowanceReason},</if>
|
||||
<if test="deductionReason != null and deductionReason != ''">deduction_reason = #{deductionReason},</if>
|
||||
<if test="otherReason != null and otherReason != ''">other_reason = #{otherReason},</if>
|
||||
<if test="openBillStatus != null and openBillStatus != ''">open_bill_status = #{openBillStatus},</if>
|
||||
<if test="paymentStatus != null and paymentStatus != ''">payment_status = #{paymentStatus},</if>
|
||||
<if test="sendPieceSum != null">send_piece_sum = #{sendPieceSum},</if>
|
||||
<if test="pieceNumber != null">piece_number = #{pieceNumber},</if>
|
||||
<if test="feeWeight != null">fee_weight = #{feeWeight},</if>
|
||||
<if test="uncollectedAmount != null">uncollected_amount = #{uncollectedAmount},</if>
|
||||
<if test="sendMoneySum != null">send_money_sum = #{sendMoneySum},</if>
|
||||
<if test="refundAmount != null">refund_amount = #{refundAmount},</if>
|
||||
<if test="refundMoney != null">refund_money = #{refundMoney},</if>
|
||||
<if test="blConfirm != null and blConfirm != ''">bl_confirm = #{blConfirm},</if>
|
||||
<if test="confirmDate != null and confirmDate != ''">confirm_date = #{confirmDate},</if>
|
||||
<if test="confirmSite != null and confirmSite != ''">confirm_site = #{confirmSite},</if>
|
||||
<if test="confirmManCode != null and confirmManCode != ''">confirm_man_code = #{confirmManCode},</if>
|
||||
<if test="blSiteConfirm != null and blSiteConfirm != ''">bl_site_confirm = #{blSiteConfirm},</if>
|
||||
<if test="confirmNote != null and confirmNote != ''">confirm_note = #{confirmNote},</if>
|
||||
<if test="siteConfirmDate != null and siteConfirmDate != ''">site_confirm_date = #{siteConfirmDate},</if>
|
||||
<if test="siteConfirmManCode != null and siteConfirmManCode != ''">site_confirm_man_code = #{siteConfirmManCode},</if>
|
||||
<if test="siteConfirmNote != null and siteConfirmNote != ''">site_confirm_note = #{siteConfirmNote},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisSettleBillById" parameterType="Long">
|
||||
delete from emis_settle_bill where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisSettleBillByIds" parameterType="String">
|
||||
delete from emis_settle_bill where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,142 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xdadan.erp.emis.mapper.EmisSettleSubBillFeeitemMapper">
|
||||
|
||||
<resultMap type="EmisSettleSubBillFeeitem" id="EmisSettleSubBillFeeitemResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="subBillNo" column="sub_bill_no" />
|
||||
<result property="billCode" column="bill_code" />
|
||||
<result property="feeCode" column="fee_code" />
|
||||
<result property="feeName" column="fee_name" />
|
||||
<result property="billFee" column="bill_fee" />
|
||||
<result property="origFee" column="orig_fee" />
|
||||
<result property="currency" column="currency" />
|
||||
<result property="orderNum" column="order_num" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisSettleSubBillFeeitemVo">
|
||||
select id, sub_bill_no, bill_code, fee_code, fee_name, bill_fee, orig_fee, currency, order_num, del_flag, create_by, create_time, update_by, update_time, remark from emis_settle_sub_bill_feeitem
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisSettleSubBillFeeitemList" parameterType="EmisSettleSubBillFeeitem" resultMap="EmisSettleSubBillFeeitemResult">
|
||||
<include refid="selectEmisSettleSubBillFeeitemVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="subBillNo != null and subBillNo != ''"> and sub_bill_no like concat('%', #{subBillNo}, '%')</if>
|
||||
<if test="billCode != null and billCode != ''"> and bill_code like concat('%', #{billCode}, '%')</if>
|
||||
<if test="feeCode != null and feeCode != ''"> and fee_code like concat('%', #{feeCode}, '%')</if>
|
||||
<if test="feeName != null and feeName != ''"> and fee_name like concat('%', #{feeName}, '%')</if>
|
||||
<if test="billFee != null "> and bill_fee = #{billFee}</if>
|
||||
<if test="origFee != null "> and orig_fee = #{origFee}</if>
|
||||
<if test="currency != null and currency != ''"> and currency like concat('%', #{currency}, '%')</if>
|
||||
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="checkUnique" parameterType="EmisSettleSubBillFeeitem" resultType="int">
|
||||
select count(1) from emis_settle_sub_bill_feeitem
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and sub_bill_no = #{subBillNo}
|
||||
and bill_code = #{billCode}
|
||||
and fee_code = #{feeCode}
|
||||
and fee_name = #{feeName}
|
||||
and bill_fee = #{billFee}
|
||||
and orig_fee = #{origFee}
|
||||
and currency = #{currency}
|
||||
and order_num = #{orderNum}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and remark = #{remark}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisSettleSubBillFeeitemById" parameterType="Long" resultMap="EmisSettleSubBillFeeitemResult">
|
||||
select id, sub_bill_no, bill_code, fee_code, fee_name, bill_fee, orig_fee, currency, order_num, del_flag, create_by, create_time, update_by, update_time, remark
|
||||
from emis_settle_sub_bill_feeitem a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisSettleSubBillFeeitem" parameterType="EmisSettleSubBillFeeitem" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_settle_sub_bill_feeitem
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="subBillNo != null and subBillNo != ''">sub_bill_no,</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code,</if>
|
||||
<if test="feeCode != null and feeCode != ''">fee_code,</if>
|
||||
<if test="feeName != null and feeName != ''">fee_name,</if>
|
||||
<if test="billFee != null">bill_fee,</if>
|
||||
<if test="origFee != null">orig_fee,</if>
|
||||
<if test="currency != null and currency != ''">currency,</if>
|
||||
<if test="orderNum != null">order_num,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="subBillNo != null and subBillNo != ''">#{subBillNo},</if>
|
||||
<if test="billCode != null and billCode != ''">#{billCode},</if>
|
||||
<if test="feeCode != null and feeCode != ''">#{feeCode},</if>
|
||||
<if test="feeName != null and feeName != ''">#{feeName},</if>
|
||||
<if test="billFee != null">#{billFee},</if>
|
||||
<if test="origFee != null">#{origFee},</if>
|
||||
<if test="currency != null and currency != ''">#{currency},</if>
|
||||
<if test="orderNum != null">#{orderNum},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisSettleSubBillFeeitem" parameterType="EmisSettleSubBillFeeitem">
|
||||
update emis_settle_sub_bill_feeitem
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="subBillNo != null and subBillNo != ''">sub_bill_no = #{subBillNo},</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code = #{billCode},</if>
|
||||
<if test="feeCode != null and feeCode != ''">fee_code = #{feeCode},</if>
|
||||
<if test="feeName != null and feeName != ''">fee_name = #{feeName},</if>
|
||||
<if test="billFee != null">bill_fee = #{billFee},</if>
|
||||
<if test="origFee != null">orig_fee = #{origFee},</if>
|
||||
<if test="currency != null and currency != ''">currency = #{currency},</if>
|
||||
<if test="orderNum != null">order_num = #{orderNum},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisSettleSubBillFeeitemById" parameterType="Long">
|
||||
delete from emis_settle_sub_bill_feeitem where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisSettleSubBillFeeitemByIds" parameterType="String">
|
||||
delete from emis_settle_sub_bill_feeitem where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
231
emis-biz/src/main/resources/mapper/EmisSettleSubBillMapper.xml
Normal file
231
emis-biz/src/main/resources/mapper/EmisSettleSubBillMapper.xml
Normal file
@ -0,0 +1,231 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xdadan.erp.emis.mapper.EmisSettleSubBillMapper">
|
||||
|
||||
<resultMap type="EmisSettleSubBill" id="EmisSettleSubBillResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="billNo" column="bill_no" />
|
||||
<result property="parentBillNo" column="parent_bill_no" />
|
||||
<result property="settleBillNo" column="settle_bill_no" />
|
||||
<result property="billCode" column="bill_code" />
|
||||
<result property="billDate" column="bill_date" />
|
||||
<result property="billFee" column="bill_fee" />
|
||||
<result property="currency" column="currency" />
|
||||
<result property="settleType" column="settle_type" />
|
||||
<result property="blSplit" column="bl_split" />
|
||||
<result property="billMonth" column="bill_month" />
|
||||
<result property="custNo" column="cust_no" />
|
||||
<result property="customerCode" column="customer_code" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="blConfirm" column="bl_confirm" />
|
||||
<result property="confirmDate" column="confirm_date" />
|
||||
<result property="confirmSite" column="confirm_site" />
|
||||
<result property="confirmManCode" column="confirm_man_code" />
|
||||
<result property="blSiteConfirm" column="bl_site_confirm" />
|
||||
<result property="confirmNote" column="confirm_note" />
|
||||
<result property="siteConfirmDate" column="site_confirm_date" />
|
||||
<result property="siteConfirmManCode" column="site_confirm_man_code" />
|
||||
<result property="siteConfirmNote" column="site_confirm_note" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisSettleSubBillVo">
|
||||
select id, bill_no, parent_bill_no, settle_bill_no, bill_code, bill_date, bill_fee, currency, settle_type, bl_split, bill_month, cust_no, customer_code, customer_name, bl_confirm, confirm_date, confirm_site, confirm_man_code, bl_site_confirm, confirm_note, site_confirm_date, site_confirm_man_code, site_confirm_note, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_sub_bill
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisSettleSubBillList" parameterType="EmisSettleSubBill" resultMap="EmisSettleSubBillResult">
|
||||
<include refid="selectEmisSettleSubBillVo"/>
|
||||
<where>
|
||||
del_flag='0'
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="billNo != null and billNo != ''"> and bill_no like concat('%', #{billNo}, '%')</if>
|
||||
<if test="parentBillNo != null and parentBillNo != ''"> and parent_bill_no like concat('%', #{parentBillNo}, '%')</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''"> and settle_bill_no like concat('%', #{settleBillNo}, '%')</if>
|
||||
<if test="billCode != null and billCode != ''"> and bill_code like concat('%', #{billCode}, '%')</if>
|
||||
<if test="billDate != null "> and bill_date = #{billDate}</if>
|
||||
<if test="billFee != null "> and bill_fee = #{billFee}</if>
|
||||
<if test="currency != null and currency != ''"> and currency like concat('%', #{currency}, '%')</if>
|
||||
<if test="settleType != null and settleType != ''"> and settle_type like concat('%', #{settleType}, '%')</if>
|
||||
<if test="blSplit != null and blSplit != ''"> and bl_split like concat('%', #{blSplit}, '%')</if>
|
||||
<if test="billMonth != null and billMonth != ''"> and bill_month like concat('%', #{billMonth}, '%')</if>
|
||||
<if test="custNo != null and custNo != ''"> and cust_no like concat('%', #{custNo}, '%')</if>
|
||||
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%', #{customerCode}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="blConfirm != null and blConfirm != ''"> and bl_confirm like concat('%', #{blConfirm}, '%')</if>
|
||||
<if test="confirmDate != null and confirmDate != ''"> and confirm_date like concat('%', #{confirmDate}, '%')</if>
|
||||
<if test="confirmSite != null and confirmSite != ''"> and confirm_site like concat('%', #{confirmSite}, '%')</if>
|
||||
<if test="confirmManCode != null and confirmManCode != ''"> and confirm_man_code like concat('%', #{confirmManCode}, '%')</if>
|
||||
<if test="blSiteConfirm != null and blSiteConfirm != ''"> and bl_site_confirm like concat('%', #{blSiteConfirm}, '%')</if>
|
||||
<if test="confirmNote != null and confirmNote != ''"> and confirm_note like concat('%', #{confirmNote}, '%')</if>
|
||||
<if test="siteConfirmDate != null and siteConfirmDate != ''"> and site_confirm_date like concat('%', #{siteConfirmDate}, '%')</if>
|
||||
<if test="siteConfirmManCode != null and siteConfirmManCode != ''"> and site_confirm_man_code like concat('%', #{siteConfirmManCode}, '%')</if>
|
||||
<if test="siteConfirmNote != null and siteConfirmNote != ''"> and site_confirm_note like concat('%', #{siteConfirmNote}, '%')</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
<select id="checkUnique" parameterType="EmisSettleSubBill" resultType="int">
|
||||
select count(1) from emis_settle_sub_bill
|
||||
where del_flag='0'
|
||||
and id = #{id}
|
||||
and bill_no = #{billNo}
|
||||
and parent_bill_no = #{parentBillNo}
|
||||
and settle_bill_no = #{settleBillNo}
|
||||
and bill_code = #{billCode}
|
||||
and bill_date = #{billDate}
|
||||
and bill_fee = #{billFee}
|
||||
and currency = #{currency}
|
||||
and settle_type = #{settleType}
|
||||
and bl_split = #{blSplit}
|
||||
and bill_month = #{billMonth}
|
||||
and cust_no = #{custNo}
|
||||
and customer_code = #{customerCode}
|
||||
and customer_name = #{customerName}
|
||||
and bl_confirm = #{blConfirm}
|
||||
and confirm_date = #{confirmDate}
|
||||
and confirm_site = #{confirmSite}
|
||||
and confirm_man_code = #{confirmManCode}
|
||||
and bl_site_confirm = #{blSiteConfirm}
|
||||
and confirm_note = #{confirmNote}
|
||||
and site_confirm_date = #{siteConfirmDate}
|
||||
and site_confirm_man_code = #{siteConfirmManCode}
|
||||
and site_confirm_note = #{siteConfirmNote}
|
||||
and del_flag = #{delFlag}
|
||||
and create_by = #{createBy}
|
||||
and create_time = #{createTime}
|
||||
and update_by = #{updateBy}
|
||||
and update_time = #{updateTime}
|
||||
and create_site = #{createSite}
|
||||
and update_site = #{updateSite}
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectEmisSettleSubBillById" parameterType="Long" resultMap="EmisSettleSubBillResult">
|
||||
select id, bill_no, parent_bill_no, settle_bill_no, bill_code, bill_date, bill_fee, currency, settle_type, bl_split, bill_month, cust_no, customer_code, customer_name, bl_confirm, confirm_date, confirm_site, confirm_man_code, bl_site_confirm, confirm_note, site_confirm_date, site_confirm_man_code, site_confirm_note, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_settle_sub_bill a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmisSettleSubBill" parameterType="EmisSettleSubBill" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into emis_settle_sub_bill
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="billNo != null and billNo != ''">bill_no,</if>
|
||||
<if test="parentBillNo != null and parentBillNo != ''">parent_bill_no,</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">settle_bill_no,</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code,</if>
|
||||
<if test="billDate != null">bill_date,</if>
|
||||
<if test="billFee != null">bill_fee,</if>
|
||||
<if test="currency != null and currency != ''">currency,</if>
|
||||
<if test="settleType != null and settleType != ''">settle_type,</if>
|
||||
<if test="blSplit != null and blSplit != ''">bl_split,</if>
|
||||
<if test="billMonth != null and billMonth != ''">bill_month,</if>
|
||||
<if test="custNo != null and custNo != ''">cust_no,</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code,</if>
|
||||
<if test="customerName != null and customerName != ''">customer_name,</if>
|
||||
<if test="blConfirm != null and blConfirm != ''">bl_confirm,</if>
|
||||
<if test="confirmDate != null and confirmDate != ''">confirm_date,</if>
|
||||
<if test="confirmSite != null and confirmSite != ''">confirm_site,</if>
|
||||
<if test="confirmManCode != null and confirmManCode != ''">confirm_man_code,</if>
|
||||
<if test="blSiteConfirm != null and blSiteConfirm != ''">bl_site_confirm,</if>
|
||||
<if test="confirmNote != null and confirmNote != ''">confirm_note,</if>
|
||||
<if test="siteConfirmDate != null and siteConfirmDate != ''">site_confirm_date,</if>
|
||||
<if test="siteConfirmManCode != null and siteConfirmManCode != ''">site_confirm_man_code,</if>
|
||||
<if test="siteConfirmNote != null and siteConfirmNote != ''">site_confirm_note,</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createSite != null and createSite != ''">create_site,</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="billNo != null and billNo != ''">#{billNo},</if>
|
||||
<if test="parentBillNo != null and parentBillNo != ''">#{parentBillNo},</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">#{settleBillNo},</if>
|
||||
<if test="billCode != null and billCode != ''">#{billCode},</if>
|
||||
<if test="billDate != null">#{billDate},</if>
|
||||
<if test="billFee != null">#{billFee},</if>
|
||||
<if test="currency != null and currency != ''">#{currency},</if>
|
||||
<if test="settleType != null and settleType != ''">#{settleType},</if>
|
||||
<if test="blSplit != null and blSplit != ''">#{blSplit},</if>
|
||||
<if test="billMonth != null and billMonth != ''">#{billMonth},</if>
|
||||
<if test="custNo != null and custNo != ''">#{custNo},</if>
|
||||
<if test="customerCode != null and customerCode != ''">#{customerCode},</if>
|
||||
<if test="customerName != null and customerName != ''">#{customerName},</if>
|
||||
<if test="blConfirm != null and blConfirm != ''">#{blConfirm},</if>
|
||||
<if test="confirmDate != null and confirmDate != ''">#{confirmDate},</if>
|
||||
<if test="confirmSite != null and confirmSite != ''">#{confirmSite},</if>
|
||||
<if test="confirmManCode != null and confirmManCode != ''">#{confirmManCode},</if>
|
||||
<if test="blSiteConfirm != null and blSiteConfirm != ''">#{blSiteConfirm},</if>
|
||||
<if test="confirmNote != null and confirmNote != ''">#{confirmNote},</if>
|
||||
<if test="siteConfirmDate != null and siteConfirmDate != ''">#{siteConfirmDate},</if>
|
||||
<if test="siteConfirmManCode != null and siteConfirmManCode != ''">#{siteConfirmManCode},</if>
|
||||
<if test="siteConfirmNote != null and siteConfirmNote != ''">#{siteConfirmNote},</if>
|
||||
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">#{updateSite},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisSettleSubBill" parameterType="EmisSettleSubBill">
|
||||
update emis_settle_sub_bill
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="billNo != null and billNo != ''">bill_no = #{billNo},</if>
|
||||
<if test="parentBillNo != null and parentBillNo != ''">parent_bill_no = #{parentBillNo},</if>
|
||||
<if test="settleBillNo != null and settleBillNo != ''">settle_bill_no = #{settleBillNo},</if>
|
||||
<if test="billCode != null and billCode != ''">bill_code = #{billCode},</if>
|
||||
<if test="billDate != null">bill_date = #{billDate},</if>
|
||||
<if test="billFee != null">bill_fee = #{billFee},</if>
|
||||
<if test="currency != null and currency != ''">currency = #{currency},</if>
|
||||
<if test="settleType != null and settleType != ''">settle_type = #{settleType},</if>
|
||||
<if test="blSplit != null and blSplit != ''">bl_split = #{blSplit},</if>
|
||||
<if test="billMonth != null and billMonth != ''">bill_month = #{billMonth},</if>
|
||||
<if test="custNo != null and custNo != ''">cust_no = #{custNo},</if>
|
||||
<if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if>
|
||||
<if test="customerName != null and customerName != ''">customer_name = #{customerName},</if>
|
||||
<if test="blConfirm != null and blConfirm != ''">bl_confirm = #{blConfirm},</if>
|
||||
<if test="confirmDate != null and confirmDate != ''">confirm_date = #{confirmDate},</if>
|
||||
<if test="confirmSite != null and confirmSite != ''">confirm_site = #{confirmSite},</if>
|
||||
<if test="confirmManCode != null and confirmManCode != ''">confirm_man_code = #{confirmManCode},</if>
|
||||
<if test="blSiteConfirm != null and blSiteConfirm != ''">bl_site_confirm = #{blSiteConfirm},</if>
|
||||
<if test="confirmNote != null and confirmNote != ''">confirm_note = #{confirmNote},</if>
|
||||
<if test="siteConfirmDate != null and siteConfirmDate != ''">site_confirm_date = #{siteConfirmDate},</if>
|
||||
<if test="siteConfirmManCode != null and siteConfirmManCode != ''">site_confirm_man_code = #{siteConfirmManCode},</if>
|
||||
<if test="siteConfirmNote != null and siteConfirmNote != ''">site_confirm_note = #{siteConfirmNote},</if>
|
||||
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmisSettleSubBillById" parameterType="Long">
|
||||
delete from emis_settle_sub_bill where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisSettleSubBillByIds" parameterType="String">
|
||||
delete from emis_settle_sub_bill where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue
Block a user