计件工资统计修改

master
Yangwl 1 year ago
parent cf3977a0e5
commit 3f7ec60948

@ -38,7 +38,7 @@ public class MesUnitPriceReportController extends BaseController {
/** /**
* *
*/ */
@RequiresPermissions("system:report:list") @RequiresPermissions("unitPriceReport:report:list")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(MesUnitpriceReport mesUnitpriceReport) { public TableDataInfo list(MesUnitpriceReport mesUnitpriceReport) {
startPage(); startPage();
@ -49,7 +49,7 @@ public class MesUnitPriceReportController extends BaseController {
/** /**
* *
*/ */
@RequiresPermissions("system:report:export") @RequiresPermissions("unitPriceReport:report:export")
@Log(title = "计件工资统计", businessType = BusinessType.EXPORT) @Log(title = "计件工资统计", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, MesUnitpriceReport mesUnitpriceReport) { public void export(HttpServletResponse response, MesUnitpriceReport mesUnitpriceReport) {
@ -61,7 +61,7 @@ public class MesUnitPriceReportController extends BaseController {
/** /**
* *
*/ */
@RequiresPermissions("system:report:query") @RequiresPermissions("unitPriceReport:report:query")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") String id) { public AjaxResult getInfo(@PathVariable("id") String id) {
return success(mesUnitpriceReportService.selectMesUnitpriceReportById(id)); return success(mesUnitpriceReportService.selectMesUnitpriceReportById(id));
@ -70,7 +70,7 @@ public class MesUnitPriceReportController extends BaseController {
/** /**
* *
*/ */
@RequiresPermissions("system:report:add") @RequiresPermissions("unitPriceReport:report:add")
@Log(title = "计件工资统计", businessType = BusinessType.INSERT) @Log(title = "计件工资统计", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody MesUnitpriceReport mesUnitpriceReport) { public AjaxResult add(@RequestBody MesUnitpriceReport mesUnitpriceReport) {
@ -80,7 +80,7 @@ public class MesUnitPriceReportController extends BaseController {
/** /**
* *
*/ */
@RequiresPermissions("system:report:edit") @RequiresPermissions("unitPriceReport:report:edit")
@Log(title = "计件工资统计", businessType = BusinessType.UPDATE) @Log(title = "计件工资统计", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody MesUnitpriceReport mesUnitpriceReport) { public AjaxResult edit(@RequestBody MesUnitpriceReport mesUnitpriceReport) {
@ -90,7 +90,7 @@ public class MesUnitPriceReportController extends BaseController {
/** /**
* *
*/ */
@RequiresPermissions("system:report:remove") @RequiresPermissions("unitPriceReport:report:remove")
@Log(title = "计件工资统计", businessType = BusinessType.DELETE) @Log(title = "计件工资统计", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids) { public AjaxResult remove(@PathVariable String[] ids) {

@ -32,63 +32,72 @@ public class MesUnitpriceReport extends BaseEntity {
*/ */
@Excel(name = "SAP订单编码") @Excel(name = "SAP订单编码")
private String workorderCodeSap; private String workorderCodeSap;
/**
*
*/
@Excel(name = "产品编号")
private String productCode;
/** /**
* *
*/ */
@Excel(name = "产品名称") @Excel(name = "产品名称")
private String productName; private String productName;
/**
*
*/
@Excel(name = "产品编号")
private String productCode;
@Excel(name = "产线编码")
private String lineCode; private String lineCode;
@Excel(name = "产线名称")
private String equipmentName; private String equipmentName;
/**
*
*/
@Excel(name = "操作者")
private String nickName;
/**
*
*/
@Excel(name = "子工序名称")
private String childprocessName;
@Excel(name = "工序单价")
private String attr1;
@Excel(name = "件数")
private String totalQuantity; private String totalQuantity;
@Excel(name = " 薪酬(元)")
private BigDecimal result; private BigDecimal result;
@Excel(name = "人数")
private String headCount; private String headCount;
@Excel(name = "平均工资")
private String avgResult; private String avgResult;
@Excel(name = "实际工资")
private String realWages; private String realWages;
/** /**
* *
*/ */
@Excel(name = "用户账号") // @Excel(name = "用户账号")
private String userName; private String userName;
/**
*
*/
@Excel(name = "用户昵称")
private String nickName;
/** /**
* *
*/ */
@Excel(name = "子工序编码") //@Excel(name = "子工序编码")
private String childprocessCode; private String childprocessCode;
/**
*
*/
@Excel(name = "子工序名称")
private String childprocessName;
/** /**
* $column.columnComment * $column.columnComment
*/ */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String attr1;
/** /**
* $column.columnComment * $column.columnComment
*/ */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") // @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String attr2; private String attr2;
public String getRealWages() { public String getRealWages() {

@ -72,7 +72,9 @@
<if test="productName != null and productName != ''">and mur.product_name like concat('%', #{productName}, <if test="productName != null and productName != ''">and mur.product_name like concat('%', #{productName},
'%') '%')
</if> </if>
<if test="productCode != null and productCode != ''">and mur.product_code = #{productCode}</if> <if test="productCode != null and productCode != ''">and mur.product_code like concat('%', #{productCode},
'%')
</if>
<if test="userName != null and userName != ''">and user_name like concat('%', #{userName}, '%')</if> <if test="userName != null and userName != ''">and user_name like concat('%', #{userName}, '%')</if>
<if test="nickName != null and nickName != ''">and nick_name like concat('%', #{nickName}, '%')</if> <if test="nickName != null and nickName != ''">and nick_name like concat('%', #{nickName}, '%')</if>
<if test="childprocessCode != null and childprocessCode != ''">and childprocess_code = <if test="childprocessCode != null and childprocessCode != ''">and childprocess_code =
@ -81,6 +83,12 @@
<if test="childprocessName != null and childprocessName != ''">and childprocess_name like concat('%', <if test="childprocessName != null and childprocessName != ''">and childprocess_name like concat('%',
#{childprocessName}, '%') #{childprocessName}, '%')
</if> </if>
<if test="lineCode != null and lineCode != ''">and mur.line_code like concat('%',
#{lineCode}, '%')
</if>
<if test="equipmentName != null and equipmentName != ''">and be.equipment_name like concat('%',
#{equipmentName}, '%')
</if>
<if test="attr1 != null and attr1 != ''">and attr1 = #{attr1}</if> <if test="attr1 != null and attr1 != ''">and attr1 = #{attr1}</if>
<if test="attr2 != null and attr2 != ''">and attr2 = #{attr2}</if> <if test="attr2 != null and attr2 != ''">and attr2 = #{attr2}</if>
<if test="attr3 != null and attr3 != ''">and attr3 = #{attr3}</if> <if test="attr3 != null and attr3 != ''">and attr3 = #{attr3}</if>

Loading…
Cancel
Save