物资类型删除

This commit is contained in:
mashuai 2024-10-25 17:47:42 +08:00
parent f9452e4517
commit d2c56237d6
3 changed files with 8 additions and 5 deletions

View File

@ -188,6 +188,10 @@ public class BmUnitServiceImpl implements IBmUnitService
@Override
public AjaxResult deleteBmUnitByUnitId(Long unitId)
{
//先查看往来单位是否被绑定绑定则不能删除
if (bmUnitMapper.selectBmUnitPersonByUnitId(unitId) > 0) {
return AjaxResult.error(HttpCodeEnum.FAIL.getCode(), "该单位还绑定相关人员,无法删除");
}
int result = bmUnitMapper.deleteBmUnitByUnitId(unitId);
if (result > 0) {
return AjaxResult.success(HttpCodeEnum.SUCCESS.getMsg(), result);

View File

@ -132,7 +132,7 @@ public class Type extends BaseEntity {
@ApiModelProperty(value = "持荷时间")
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "持荷时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date holdingTime;
private String holdingTime;
/** 库存预警数量 */
@Excel(name = "库存预警数量")

View File

@ -70,10 +70,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="remark" column="remark" />
<result property="facModel" column="fac_model" />
<result property="intelligentCode" column="intelligent_code" />
<result property="parentOneLevelName" column="parentFourLevelName" />
<result property="parentTwoLevelName" column="parentThreeLevelName" />
<result property="parentThreeLevelName" column="parentTwoLevelName" />
<result property="parentFourLevelName" column="parentOneLevelName" />
<result property="itemType" column="itemType" />
<result property="materialType" column="materialType" />
<result property="materialName" column="materialName" />
<result property="houseName" column="house_name" />
</resultMap>