数据接口

This commit is contained in:
haozq 2024-11-12 13:04:16 +08:00
parent cea67e683a
commit 82dc799db3
2 changed files with 13 additions and 2 deletions

View File

@ -1,10 +1,12 @@
package com.bonus.gzgqj.business.bases.service;
import com.alibaba.fastjson.JSON;
import com.bonus.gzgqj.business.bases.entity.PartInputDetails;
import com.bonus.gzgqj.business.bases.entity.PartInputVo;
import com.bonus.gzgqj.business.bases.mapper.PartInputMapper;
import com.bonus.gzgqj.business.plan.entity.ProOutInfoVo;
import com.bonus.gzgqj.manager.common.util.StringHelper;
import com.bonus.gzgqj.manager.common.util.UserUtil;
import com.bonus.gzgqj.manager.webResult.ServerResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@ -66,6 +68,15 @@ public class PartInputServiceImpl implements PartInputService{
if(files==null || files.length<=0){
return ServerResponse.createErroe("未上传入库单");
}
List<PartInputDetails> list=vo.getDetails();
if(list==null || list.isEmpty()){
return ServerResponse.createErroe("请上传入库配件");
}
long userId= UserUtil.getLoginUser().getUserId();
String userName=UserUtil.getLoginUser().getUsername();
//int num=mapper.addInputData(vo);

View File

@ -23,8 +23,8 @@
pt.price,pt.unit,pt.weight,pt.is_consumables ,
pt.remarks,pt.is_active ,pt.level,pt.warn_num
FROM pa_type pt
left join pa_type pt1 on pt.parent_id=pt1.id and pt1.`level`=2 and pt1.is_active=1
WHERE pt.is_active=1 and id=#{id}
left join pa_type pt1 on pt.parent_id=pt1.id and pt1.`level`=2 and pt1.is_active=1
WHERE pt.is_active=1 and pt.id=#{id}
</select>
<select id="getChildList" resultType="java.lang.String">
select id