Merge remote-tracking branch 'origin/master'

This commit is contained in:
mashuai 2025-03-31 19:14:10 +08:00
commit c6eaf1deab
8 changed files with 72 additions and 30 deletions

View File

@ -47,7 +47,7 @@ import javax.servlet.http.HttpServletResponse;
/** /**
* 领料任务Service业务层处理 * 领料任务Service业务层处理
* *
* @author xsheng * @author xsheng
* @date 2024-10-16 * @date 2024-10-16
*/ */
@ -169,7 +169,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
/** /**
* 查询领料任务列表 * 查询领料任务列表
* *
* @param leaseApplyInfo 领料任务 * @param leaseApplyInfo 领料任务
* @return 领料任务 * @return 领料任务
*/ */
@ -398,7 +398,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
} }
return count; return count;
}*/ }*/
/** /**
* 发布任务 * 发布任务
* *
@ -511,7 +511,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
/** /**
* 修改领料任务 * 修改领料任务
* *
* @param leaseApplyRequestVo 领料任务 * @param leaseApplyRequestVo 领料任务
* @return 结果 * @return 结果
*/ */
@ -644,7 +644,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
/** /**
* 批量删除领料任务 * 批量删除领料任务
* *
* @param ids 需要删除的领料任务主键 * @param ids 需要删除的领料任务主键
* @return 结果 * @return 结果
*/ */
@ -655,7 +655,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
/** /**
* 删除领料任务信息 * 删除领料任务信息
* *
* @param id 领料任务主键 * @param id 领料任务主键
* @return 结果 * @return 结果
*/ */
@ -690,6 +690,8 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
recordList = recordList.stream().filter(item -> item.getMaStatus().equals(MaMachineStatusEnum.IN_STORE.getStatus().toString())).collect(Collectors.toList()); recordList = recordList.stream().filter(item -> item.getMaStatus().equals(MaMachineStatusEnum.IN_STORE.getStatus().toString())).collect(Collectors.toList());
if (recordList.size() > 0) { if (recordList.size() > 0) {
msg = "监测到" + bmQrcodeInfo.getQrCode() + "符合出库条件,请确认是否出库!"; msg = "监测到" + bmQrcodeInfo.getQrCode() + "符合出库条件,请确认是否出库!";
}else{
msg = "监测到" + bmQrcodeInfo.getQrCode() + "编码不符合出库条件,请检查后重新提交!";
} }
} else { } else {
msg = "监测到" + bmQrcodeInfo.getQrCode() + "编码不符合出库条件,请检查后重新提交!"; msg = "监测到" + bmQrcodeInfo.getQrCode() + "编码不符合出库条件,请检查后重新提交!";

View File

@ -30,7 +30,7 @@ import static com.bonus.common.core.web.page.TableSupport.PAGE_SIZE;
/** /**
* 新购验收任务Controller * 新购验收任务Controller
* *
* @author syruan * @author syruan
*/ */
@Api(tags = "新购管理接口") @Api(tags = "新购管理接口")
@ -65,6 +65,16 @@ public class PurchaseCheckInfoController extends BaseController {
return success(purchaseCheckInfoService.selectPurchaseCheckInfoById(purchaseQueryDto)); return success(purchaseCheckInfoService.selectPurchaseCheckInfoById(purchaseQueryDto));
} }
/**
* 获取新购验收人信息
*/
@ApiOperation("获取新购验收人信息")
//@RequiresPermissions("purchase:info:query")
@GetMapping(value = "/getCheckUserList")
public AjaxResult getCheckUserList(@NotNull(message = "请求对象不能为空") PurchaseQueryDto purchaseQueryDto) {
return success(purchaseCheckInfoService.selectPurchaseCheckUserById(purchaseQueryDto));
}
/** /**
* 新增新购验收任务 * 新增新购验收任务
*/ */

View File

@ -136,4 +136,14 @@ public class PurchaseCheckInfo extends BaseEntity {
@ApiModelProperty(value = "新购模块阶段名称") @ApiModelProperty(value = "新购模块阶段名称")
private String modelName; private String modelName;
private String checkUser;
public String getCheckUser() {
return checkUser;
}
public void setCheckUser(String checkUser) {
this.checkUser = checkUser;
}
} }

View File

@ -7,14 +7,14 @@ import com.bonus.material.purchase.domain.vo.PurchaseCheckFormVo;
/** /**
* 新购验收任务Mapper接口 * 新购验收任务Mapper接口
* *
* @author xsheng * @author xsheng
* @date 2024-10-16 * @date 2024-10-16
*/ */
public interface PurchaseCheckInfoMapper { public interface PurchaseCheckInfoMapper {
/** /**
* 查询新购验收任务 * 查询新购验收任务
* *
* @param id 新购验收任务主键 * @param id 新购验收任务主键
* @return 新购验收任务 * @return 新购验收任务
*/ */
@ -22,7 +22,7 @@ public interface PurchaseCheckInfoMapper {
/** /**
* 查询新购验收任务列表--单表基础查询 * 查询新购验收任务列表--单表基础查询
* *
* @param purchaseCheckInfo 新购验收任务 * @param purchaseCheckInfo 新购验收任务
* @return 新购验收任务集合 * @return 新购验收任务集合
*/ */
@ -46,7 +46,7 @@ public interface PurchaseCheckInfoMapper {
/** /**
* 新增新购验收任务 * 新增新购验收任务
* *
* @param purchaseCheckInfo 新购验收任务 * @param purchaseCheckInfo 新购验收任务
* @return 结果 * @return 结果
*/ */
@ -54,7 +54,7 @@ public interface PurchaseCheckInfoMapper {
/** /**
* 修改新购验收任务 * 修改新购验收任务
* *
* @param purchaseCheckInfo 新购验收任务 * @param purchaseCheckInfo 新购验收任务
* @return 结果 * @return 结果
*/ */
@ -62,7 +62,7 @@ public interface PurchaseCheckInfoMapper {
/** /**
* 删除新购验收任务 * 删除新购验收任务
* *
* @param id 新购验收任务主键 * @param id 新购验收任务主键
* @return 结果 * @return 结果
*/ */
@ -70,9 +70,11 @@ public interface PurchaseCheckInfoMapper {
/** /**
* 批量删除新购验收任务 * 批量删除新购验收任务
* *
* @param ids 需要删除的数据主键集合 * @param ids 需要删除的数据主键集合
* @return 结果 * @return 结果
*/ */
int deletePurchaseCheckInfoByIds(Long[] ids); int deletePurchaseCheckInfoByIds(Long[] ids);
List<PurchaseCheckInfo> selectPurchaseCheckUserById(PurchaseQueryDto purchaseQueryDto);
} }

View File

@ -12,13 +12,13 @@ import com.bonus.material.purchase.domain.vo.PurchaseVerifyVo;
/** /**
* 新购验收任务Service接口 * 新购验收任务Service接口
* *
* @author syruan * @author syruan
*/ */
public interface IPurchaseCheckInfoService { public interface IPurchaseCheckInfoService {
/** /**
* 查询新购验收任务 * 查询新购验收任务
* *
* @param purchaseQueryDto 新购验收请求条件封装dto * @param purchaseQueryDto 新购验收请求条件封装dto
* @return 新购验收任务 * @return 新购验收任务
*/ */
@ -26,7 +26,7 @@ public interface IPurchaseCheckInfoService {
/** /**
* 查询新购验收任务列表 * 查询新购验收任务列表
* *
* @param purchaseQueryDto 新购验收任务 * @param purchaseQueryDto 新购验收任务
* @return 新购验收任务集合 * @return 新购验收任务集合
*/ */
@ -36,7 +36,7 @@ public interface IPurchaseCheckInfoService {
/** /**
* 新增新购验收任务 * 新增新购验收任务
* *
* @param purchaseCheckDto 新购验收任务dto * @param purchaseCheckDto 新购验收任务dto
* @return 结果 * @return 结果
*/ */
@ -60,7 +60,7 @@ public interface IPurchaseCheckInfoService {
/** /**
* 修改新购验收任务 * 修改新购验收任务
* *
* @param purchaseCheckDto 新购验收任务 * @param purchaseCheckDto 新购验收任务
* @return 结果 * @return 结果
*/ */
@ -68,7 +68,7 @@ public interface IPurchaseCheckInfoService {
/** /**
* 批量删除新购验收任务 * 批量删除新购验收任务
* *
* @param ids 需要删除的新购验收任务主键集合 * @param ids 需要删除的新购验收任务主键集合
* @return 结果 * @return 结果
*/ */
@ -76,9 +76,11 @@ public interface IPurchaseCheckInfoService {
/** /**
* 删除新购验收任务信息 * 删除新购验收任务信息
* *
* @param id 新购验收任务主键 * @param id 新购验收任务主键
* @return 结果 * @return 结果
*/ */
int deletePurchaseCheckInfoById(Long id); int deletePurchaseCheckInfoById(Long id);
List<PurchaseCheckInfo> selectPurchaseCheckUserById(PurchaseQueryDto purchaseQueryDto);
} }

View File

@ -688,4 +688,9 @@ public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService {
public int deletePurchaseCheckInfoById(Long id) { public int deletePurchaseCheckInfoById(Long id) {
return purchaseCheckInfoMapper.deletePurchaseCheckInfoById(id); return purchaseCheckInfoMapper.deletePurchaseCheckInfoById(id);
} }
@Override
public List<PurchaseCheckInfo> selectPurchaseCheckUserById(PurchaseQueryDto purchaseQueryDto) {
return purchaseCheckInfoMapper.selectPurchaseCheckUserById(purchaseQueryDto);
}
} }

View File

@ -21,6 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="companyId" column="company_id" /> <result property="companyId" column="company_id" />
<result property="taskStatus" column="task_status" /> <result property="taskStatus" column="task_status" />
<result property="checkUser" column="checkUser" />
</resultMap> </resultMap>
<resultMap type="com.bonus.material.purchase.domain.vo.PurchaseCheckFormVo" id="PurchaseCheckFormResult"> <resultMap type="com.bonus.material.purchase.domain.vo.PurchaseCheckFormVo" id="PurchaseCheckFormResult">
@ -51,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectPurchaseCheckInfoList" parameterType="com.bonus.material.purchase.domain.PurchaseCheckInfo" resultMap="PurchaseCheckInfoResult"> <select id="selectPurchaseCheckInfoList" parameterType="com.bonus.material.purchase.domain.PurchaseCheckInfo" resultMap="PurchaseCheckInfoResult">
<include refid="selectPurchaseCheckInfoBaseSQL"/> <include refid="selectPurchaseCheckInfoBaseSQL"/>
<where> <where>
<if test="taskId != null "> and task_id = #{taskId}</if> <if test="taskId != null "> and task_id = #{taskId}</if>
<if test="purchaseTime != null "> and purchase_time = #{purchaseTime}</if> <if test="purchaseTime != null "> and purchase_time = #{purchaseTime}</if>
<if test="arrivalTime != null "> and arrival_time = #{arrivalTime}</if> <if test="arrivalTime != null "> and arrival_time = #{arrivalTime}</if>
@ -61,12 +62,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="companyId != null "> and company_id = #{companyId}</if> <if test="companyId != null "> and company_id = #{companyId}</if>
</where> </where>
</select> </select>
<select id="selectPurchaseCheckInfoById" parameterType="Long" resultMap="PurchaseCheckInfoResult"> <select id="selectPurchaseCheckInfoById" parameterType="Long" resultMap="PurchaseCheckInfoResult">
<include refid="selectPurchaseCheckInfoBaseSQL"/> <include refid="selectPurchaseCheckInfoBaseSQL"/>
where id = #{id} where id = #{id}
</select> </select>
<insert id="insertPurchaseCheckInfo" parameterType="com.bonus.material.purchase.domain.PurchaseCheckInfo" useGeneratedKeys="true" keyProperty="id"> <insert id="insertPurchaseCheckInfo" parameterType="com.bonus.material.purchase.domain.PurchaseCheckInfo" useGeneratedKeys="true" keyProperty="id">
insert into purchase_check_info insert into purchase_check_info
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
@ -123,7 +124,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete> </delete>
<delete id="deletePurchaseCheckInfoByIds" parameterType="String"> <delete id="deletePurchaseCheckInfoByIds" parameterType="String">
delete from purchase_check_info where id in delete from purchase_check_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>
@ -152,4 +153,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="taskId != null "> and pci.task_id = #{taskId}</if> <if test="taskId != null "> and pci.task_id = #{taskId}</if>
</where> </where>
</select> </select>
</mapper>
<select id="selectPurchaseCheckUserById" resultMap="PurchaseCheckInfoResult">
select
id, task_id as taskId, auditor as userId, su.nick_name AS checkUser,org_id as orgId
from
purchase_audit_record pur
LEFT JOIN sys_user su on pur.auditor = su.user_id
where
task_id =#{taskId}
GROUP BY auditor
</select>
</mapper>

View File

@ -33,10 +33,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<delete id="deleteReduceDetail"> <delete id="deleteReduceDetail">
delete delete
from slt_reduce_details from slt_reduce_details
where apply_id = #{id}; where apply_id = #{id}
delete
from bm_file_info
where model_id = #{id}
</delete> </delete>
<select id="selectSltAgreementReduceList" parameterType="com.bonus.material.settlement.domain.SltAgreementReduce" resultMap="SltAgreementReudceResult"> <select id="selectSltAgreementReduceList" parameterType="com.bonus.material.settlement.domain.SltAgreementReduce" resultMap="SltAgreementReudceResult">