修改bug

This commit is contained in:
haozq 2024-11-15 19:02:02 +08:00
parent 34a97db42e
commit 4db6b399a3
8 changed files with 13 additions and 10 deletions

View File

@ -90,7 +90,7 @@ public class PartBackController {
* @return
*/
@GetMapping("getInfoDetailsList")
@DecryptAndVerify(decryptedClass = PartBackVo.class)
@DecryptAndVerify(decryptedClass = PartBackDetailsVo.class)
public PageInfo<PartBackDetailsVo> getInfoDetailsList(EncryptedReq<PartBackDetailsVo> dto) {
PageHelper.startPage(dto.getPageNum(),dto.getPageSize());
List<PartBackDetailsVo> list = service.getInfoDetailsList(dto.getData());;

View File

@ -80,7 +80,7 @@ public class PartCheckController {
* @return
*/
@GetMapping("getDetailsByIdList")
@DecryptAndVerify(decryptedClass = PartCheckVo.class)
@DecryptAndVerify(decryptedClass = PartCheckDetailsVo.class)
public PageInfo<PartCheckDetailsVo> getDetailsByIdList(EncryptedReq<PartCheckDetailsVo> dto) {
PageHelper.startPage(dto.getPageNum(),dto.getPageSize());
List<PartCheckDetailsVo> list = service.getDetailsByIdList(dto.getData());;

View File

@ -152,7 +152,7 @@ public class StatisticsController {
* @return
*/
@GetMapping("getProDetailsPage")
@DecryptAndVerify(decryptedClass = ProjectInfoVo.class)
@DecryptAndVerify(decryptedClass = PartApplyDetailAppVo.class)
public PageInfo<PartApplyDetailAppVo> getProDetailsPage(EncryptedReq<PartApplyDetailAppVo> dto) {
PageHelper.startPage(dto.getPageNum(),dto.getPageSize());
List<PartApplyDetailAppVo> list = service.getProDetailsPage(dto.getData());;

View File

@ -93,4 +93,6 @@ public class PartBackVo {
private List<FileUploadVo> fileList;
private String infoMsg;
private String status;
}

View File

@ -3,6 +3,7 @@ package com.bonus.gzgqj.business.bases.mapper;
import com.bonus.gzgqj.business.bases.entity.PartBackDetailsVo;
import com.bonus.gzgqj.business.bases.entity.PartBackVo;
import com.bonus.gzgqj.business.bases.entity.UserPatypeInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@ -41,7 +42,7 @@ public interface PartBackMapper {
*/
int insertBack(PartBackVo vo);
int insertBackDetails(PartBackVo vo, List<PartBackDetailsVo> list);
int insertBackDetails(@Param("param") PartBackVo vo, @Param("list") List<PartBackDetailsVo> list);
/**
* 分页查询 退料数据

View File

@ -67,7 +67,7 @@ public class UserPartInfoServiceImpl {
user.setPartId(vo.getPartId());
user.setUserId(userId);
UserPatypeInfo info=mapper.getInfo(user);
info.setGhNum(info.getGhNum()+vo.getBackNum());
user.setGhNum(info.getGhNum()+vo.getBackNum());
mapper.updateBackData(user);
}
}

View File

@ -3,7 +3,7 @@
<mapper namespace="com.bonus.gzgqj.business.bases.mapper.PartBackMapper" >
<select id="findByPage" resultType="com.bonus.gzgqj.business.bases.entity.PartBackVo">
select tpb.id, tpb.code, tpb.creator,pu.TELPHONE phone ,tpb.back_num backNum,tpb.user_name userName
select tpb.id, tpb.code, tpb.creator,pu.TELPHONE phone ,tpb.back_num backNum,tpb.user_name userName,
tpb.back_day backDay, tpb.create_time createTime, tpb.type, tpb.remark,
tpb.status, tpb.updater, tpb.update_time updateTime, tpb.create_id createId
from t_part_back tpb
@ -52,8 +52,8 @@
select
user_id userId, part_id partId,part_type partType,
part_name partName, part_model partModel,
ly_num lyNum, gh_num ghNum, user_name userName,part_unit partUnit
from tb_user_pa_type_info ppd where user_id=#{userId}
(ly_num-gh_num) lyNum , user_name userName,part_unit partUnit
from tb_user_pa_type_info ppd where user_id=#{userId} AND (ly_num-gh_num)>0
<if test="partType!=null and partType!=''">
and ppd.part_type like concat('%',#{partType},'%')
</if>
@ -87,7 +87,7 @@
</if>
</select>
<select id="getInfoDetails" resultType="com.bonus.gzgqj.business.bases.entity.PartBackVo">
select tpb.id, tpb.code, tpb.creator,pu.TELPHONE phone ,tpb.back_num backNum,tpb.user_name userName
select tpb.id, tpb.code, tpb.creator,pu.TELPHONE phone ,tpb.back_num backNum,tpb.user_name userName,
tpb.back_day backDay, tpb.create_time createTime, tpb.type, tpb.remark,
tpb.status, tpb.updater, tpb.update_time updateTime, tpb.create_id createId
from t_part_back tpb

View File

@ -10,7 +10,7 @@
where user_id=#{userId} and part_id=#{partId}
</update>
<update id="updateBackData">
update tb_user_pa_type_info set gh_num=#{gh_num}
update tb_user_pa_type_info set gh_num=#{ghNum}
where user_id=#{userId} and part_id=#{partId}
</update>