数据接口
This commit is contained in:
parent
cea67e683a
commit
82dc799db3
|
|
@ -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);
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue