1.提交单据生成功能(原耗材领用设置)接口代码

master
x_z 2 years ago
parent 25c1e6e0b1
commit 35ada6f5ef

@ -1,5 +1,6 @@
package com.glxp.api.controller.basic;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageInfo;
import com.glxp.api.common.enums.ResultEnum;
import com.glxp.api.common.res.BaseResponse;
@ -91,11 +92,11 @@ public class BasicBusTypeChangeController {
* @return
*/
@PostMapping("/basic/bustype/change/delete")
public BaseResponse delBussinessType(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
public BaseResponse delBussinessType(@RequestBody @Valid DeleteRequest deleteRequest, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
if (deleteRequest != null) {
if (deleteRequest != null && StrUtil.isNotBlank(deleteRequest.getId())) {
basicBusTypeChangeService.deleteById(deleteRequest.getId());
} else {
return ResultVOUtils.error(999, "参数错误");

@ -43,19 +43,13 @@ public class BasicBusTypeChangeEntity {
* 1:2.3.
*/
@TableField(value = "`type`")
private Boolean type;
private Integer type;
/**
* 0:1:
*/
@TableField(value = "`enable`")
private Boolean enable;
/**
*
*/
@TableField(value = "systemDefault")
private Boolean systemDefault;
private boolean enable;
/**
*

@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.api.dao.basic.BasicBusTypeChangeDao">
<select id="filterList" resultType="com.glxp.api.res.basic.BasicBusTypeChangeResponse">
select bc.*, bu.name
select bc.*, bu.name targetBusName
from basic_bustype_change bc
left join basic_bussiness_type bu on bc.targetAction = bu.action
<where>

Loading…
Cancel
Save