单位类型
This commit is contained in:
parent
36ea481926
commit
7d0a54fe83
|
|
@ -51,7 +51,7 @@ public class BmUnitTypeController extends BaseController {
|
||||||
@ApiOperation(value = "获取往来单位类型详细信息")
|
@ApiOperation(value = "获取往来单位类型详细信息")
|
||||||
@RequiresPermissions("basic:unitType:query")
|
@RequiresPermissions("basic:unitType:query")
|
||||||
@GetMapping(value = "/{typeId}")
|
@GetMapping(value = "/{typeId}")
|
||||||
public AjaxResult getInfo(@PathVariable("id") Long typeId)
|
public AjaxResult getInfo(@PathVariable("typeId") Long typeId)
|
||||||
{
|
{
|
||||||
return AjaxResult.success(bmUnitTypeService.selectListByID(typeId));
|
return AjaxResult.success(bmUnitTypeService.selectListByID(typeId));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package com.bonus.material.basic.domain;
|
package com.bonus.material.basic.domain;
|
||||||
|
|
||||||
|
import com.bonus.common.core.annotation.Excel;
|
||||||
import com.bonus.common.core.web.domain.BaseEntity;
|
import com.bonus.common.core.web.domain.BaseEntity;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
@ -15,6 +16,7 @@ public class BmUnitType extends BaseEntity {
|
||||||
private Long typeId;
|
private Long typeId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "单位类型名称")
|
@ApiModelProperty(value = "单位类型名称")
|
||||||
|
@Excel(name = "单位类型")
|
||||||
private String typeName;
|
private String typeName;
|
||||||
|
|
||||||
@ApiModelProperty(value = "数据所属组织")
|
@ApiModelProperty(value = "数据所属组织")
|
||||||
|
|
@ -23,7 +25,4 @@ public class BmUnitType extends BaseEntity {
|
||||||
/** 删除标志(0代表存在 2代表删除) */
|
/** 删除标志(0代表存在 2代表删除) */
|
||||||
private String delFlag;
|
private String delFlag;
|
||||||
|
|
||||||
@ApiModelProperty(value = "单位类型状态 0代表启用,1代表不启用")
|
|
||||||
private int status;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -189,11 +189,6 @@ public class BmUnitTypeServiceImpl implements IBmUnitTypeService {
|
||||||
throw new IllegalArgumentException("第 " + (cellNum + 1) + " 列表头列名与预期不符,请检查导入模板");
|
throw new IllegalArgumentException("第 " + (cellNum + 1) + " 列表头列名与预期不符,请检查导入模板");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1:
|
|
||||||
if (!"状态(0 启用 1 不启用)".equals(headerValue)) {
|
|
||||||
throw new IllegalArgumentException("第 " + (cellNum + 1) + " 列表头列名与预期不符,请检查导入模板");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
insert into bm_unit_type
|
insert into bm_unit_type
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="typeName != null and typeName != ''">type_name,</if>
|
<if test="typeName != null and typeName != ''">type_name,</if>
|
||||||
<if test="status != null">status,</if>
|
|
||||||
<if test="companyId != null">company_id,</if>
|
<if test="companyId != null">company_id,</if>
|
||||||
del_flag,
|
del_flag,
|
||||||
<if test="createBy != null">create_by,</if>
|
<if test="createBy != null">create_by,</if>
|
||||||
|
|
@ -17,7 +16,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="typeName != null and typeName != ''">#{typeName},</if>
|
<if test="typeName != null and typeName != ''">#{typeName},</if>
|
||||||
<if test="status != null">#{status},</if>
|
|
||||||
<if test="companyId != null">#{companyId},</if>
|
<if test="companyId != null">#{companyId},</if>
|
||||||
0,
|
0,
|
||||||
<if test="createBy != null">#{createBy},</if>
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
|
@ -30,7 +28,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
update bm_unit_type
|
update bm_unit_type
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="typeName != null and typeName != ''">type_name = #{typeName},</if>
|
<if test="typeName != null and typeName != ''">type_name = #{typeName},</if>
|
||||||
<if test="status != null">status = #{status},</if>
|
|
||||||
<if test="companyId != null">company_id = #{companyId},</if>
|
<if test="companyId != null">company_id = #{companyId},</if>
|
||||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
<if test="updateTime !=null">update_time = #{updateTime},</if>
|
<if test="updateTime !=null">update_time = #{updateTime},</if>
|
||||||
|
|
@ -43,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<select id="selectBmUnitList" resultType="com.bonus.material.basic.domain.BmUnitType">
|
<select id="selectBmUnitList" resultType="com.bonus.material.basic.domain.BmUnitType">
|
||||||
select type_id as typeId, type_name as typeName, company_id as companyId, del_flag as delFlag, status as status
|
select type_id as typeId, type_name as typeName, company_id as companyId, del_flag as delFlag
|
||||||
from bm_unit_type
|
from bm_unit_type
|
||||||
where
|
where
|
||||||
del_flag = '0'
|
del_flag = '0'
|
||||||
|
|
@ -53,12 +50,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectListByID" resultType="com.bonus.material.basic.domain.BmUnitType">
|
<select id="selectListByID" resultType="com.bonus.material.basic.domain.BmUnitType">
|
||||||
select type_id as typeId, type_name as typeName, company_id as companyId, del_flag as delFlag, status as status from bm_unit_type
|
select type_id as typeId, type_name as typeName, company_id as companyId, del_flag as delFlag from bm_unit_type
|
||||||
where del_flag = '0' and type_id = #{typeId}
|
where del_flag = '0' and type_id = #{typeId}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectBmUnitTypeByTypeName" resultType="com.bonus.material.basic.domain.BmUnitType">
|
<select id="selectBmUnitTypeByTypeName" resultType="com.bonus.material.basic.domain.BmUnitType">
|
||||||
select type_id as typeId, type_name as typeName, company_id as companyId, del_flag as delFlag, status as status from bm_unit_type
|
select type_id as typeId, type_name as typeName, company_id as companyId, del_flag as delFlag from bm_unit_type
|
||||||
where del_flag = '0' and type_name = #{typeName}
|
where del_flag = '0' and type_name = #{typeName}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Binary file not shown.
Loading…
Reference in New Issue