Compare commits

...

2 Commits

Author SHA1 Message Date
mashuai 22b8403eaf Merge remote-tracking branch 'origin/dev' into dev 2024-04-07 14:29:28 +08:00
mashuai a815a24790 退料入库 2024-04-07 14:29:02 +08:00
5 changed files with 38 additions and 13 deletions

View File

@ -102,7 +102,7 @@ public class MachIneDto {
/** /**
* 数量 * 数量
*/ */
@ApiModelProperty(value = "数量") @ApiModelProperty(value = "上方页面入库数量")
private Double num; private Double num;
/** /**
@ -114,6 +114,18 @@ public class MachIneDto {
/** /**
* 入库数量 * 入库数量
*/ */
@ApiModelProperty(value = "入库数量") @ApiModelProperty(value = "表单集合入库数量")
private Double putInStoreNum; private Double putInStoreNum;
/**
* 单位名称
*/
@ApiModelProperty(value = "单位名称")
private String unitId;
/**
* 工程名称
*/
@ApiModelProperty(value = "工程名称")
private String proId;
} }

View File

@ -90,7 +90,7 @@ public class SavePutInfoDto extends BaseEntity {
* 工程名称 * 工程名称
*/ */
@ApiModelProperty(value = "工程名称") @ApiModelProperty(value = "工程名称")
private String projectId; private String proId;
/** /**
* 创建者 * 创建者

View File

@ -23,7 +23,7 @@ public interface InventoryAndWarehousingMapper {
List<PutInStorageBean> getList(PutInStorageBean bean); List<PutInStorageBean> getList(PutInStorageBean bean);
/** /**
* ma_type_put_in_storage_details表 * 新增ma_type_put_in_storage_details表
* @param machIneDto * @param machIneDto
* @return * @return
*/ */
@ -38,19 +38,31 @@ public interface InventoryAndWarehousingMapper {
/** /**
* 更新matype表中num数量 * 更新matype表中num数量
* @param * @param typeId
* @param num
* @return
*/ */
int updateMaType(@Param("typeId") String typeId, @Param("num") Double num); int updateMaType(@Param("typeId") String typeId, @Param("num") Double num);
/** /**
* 新增ma_machine表 * 新增ma_machine表
* @param * @param machIneDto
* @return * @return
*/ */
int insertMachine(MachIneDto machIneDto); int insertMachine(MachIneDto machIneDto);
/**
* 新增ma_machine_label
* @param machIneDto
* @return
*/
int insertMachineLabel(MachIneDto machIneDto); int insertMachineLabel(MachIneDto machIneDto);
/**
* 新增ma_label_bind
* @param machIneDto
* @return
*/
int insertLabelBind(MachIneDto machIneDto); int insertLabelBind(MachIneDto machIneDto);
/** /**
@ -60,5 +72,4 @@ public interface InventoryAndWarehousingMapper {
*/ */
int selectByCode(String code); int selectByCode(String code);
int selectById(Integer id);
} }

View File

@ -121,6 +121,8 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
machIneDto.setPutInType(dto.getPutInType()); machIneDto.setPutInType(dto.getPutInType());
machIneDto.setNum(dto.getNum()); machIneDto.setNum(dto.getNum());
machIneDto.setCheckMan(dto.getCheckMan()); machIneDto.setCheckMan(dto.getCheckMan());
machIneDto.setUnitId(dto.getUnitId());
machIneDto.setProId(dto.getProId());
res += insertMachineInfo(machIneDto); res += insertMachineInfo(machIneDto);
} }
return res; return res;
@ -176,6 +178,8 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
machIneDto.setCreator(dto.getCreator()); machIneDto.setCreator(dto.getCreator());
machIneDto.setPutInType(dto.getPutInType()); machIneDto.setPutInType(dto.getPutInType());
machIneDto.setRemarks(dto.getRemarks()); machIneDto.setRemarks(dto.getRemarks());
machIneDto.setUnitId(dto.getUnitId());
machIneDto.setProId(dto.getProId());
res += insertTypePutInStorageInfo(machIneDto); res += insertTypePutInStorageInfo(machIneDto);
//根据类型追加ma_type表里面的num //根据类型追加ma_type表里面的num
res += updateMaTypeInfo(machIneDto.getTypeId(), machIneDto.getPutInStoreNum()); res += updateMaTypeInfo(machIneDto.getTypeId(), machIneDto.getPutInStoreNum());

View File

@ -58,6 +58,8 @@
</otherwise> </otherwise>
</choose> </choose>
<if test="creator != null and creator != ''">CREATOR,</if> <if test="creator != null and creator != ''">CREATOR,</if>
<if test="unitId != null and unitId != ''">UNIT_ID,</if>
<if test="proId != null and proId != ''">PROJECT_ID,</if>
CREATE_DATE, CREATE_DATE,
<choose> <choose>
<when test="isCode and remarks != null and remarks != ''"> <when test="isCode and remarks != null and remarks != ''">
@ -84,6 +86,8 @@
</otherwise> </otherwise>
</choose> </choose>
<if test="creator != null and creator != ''">#{creator},</if> <if test="creator != null and creator != ''">#{creator},</if>
<if test="unitId != null and unitId != ''">#{unitId},</if>
<if test="proId != null and proId != ''">#{proId},</if>
sysdate(), sysdate(),
<choose> <choose>
<when test="isCode and remarks != null and remarks != ''"> <when test="isCode and remarks != null and remarks != ''">
@ -194,10 +198,4 @@
<if test="code != null ">and qr_code = #{code}</if> <if test="code != null ">and qr_code = #{code}</if>
</where> </where>
</select> </select>
<select id="selectById" resultType="java.lang.Integer">
select info from ma_type_put_in_storage_details
<where>
<if test="id != null">and ID = #{id}</if>
</where>
</select>
</mapper> </mapper>