修改bug

zhairh
zhengmingliang 3 years ago
parent 2cd80bbc0f
commit 84ce4e33a9

@ -237,6 +237,12 @@ public class ThrProductsAddDiController {
if (null != deleteRequest && deleteRequest.getId() == null) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
}
ThrProductsAddDiEntity thrProductsAddDiEntity=thrProductsAddDiService.filterThrProductsGetId(Integer.valueOf(deleteRequest.getId()));
if(thrProductsAddDiEntity!=null){
if(thrProductsAddDiEntity.getStatus()!=1){
return ResultVOUtils.error(877,"审批状态发生改变请刷新页面重新操作!");
}
}
thrProductsAddDiService.delThrDiProducts(Long.valueOf(deleteRequest.getId()));
return ResultVOUtils.success();
}

@ -33,4 +33,7 @@ public interface ThrProductsAddDiDao {
boolean updateDiProduct(ThrProductsAddDiEntity thrProductsAddDiEntity);
UdiInfoEntity getDiProductDetail(@Param("uuid") String uuid);
/** 根据ID查询 */
ThrProductsAddDiEntity filterThrProductsGetId(@Param("id") Integer id);
}

@ -5,6 +5,7 @@ import com.glxp.sale.admin.entity.thrsys.ThrProductsAddDiEntity;
import com.glxp.sale.admin.req.thrsys.AddThrDiProductsRequest;
import com.glxp.sale.admin.req.thrsys.FilterThrProductsRequest;
import com.glxp.sale.admin.res.thrsys.ThrProductsAddDiResponse;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -28,4 +29,7 @@ public interface ThrProductsAddDiService {
boolean addThrAddDiProducts(AddThrDiProductsRequest thrDiProductsRequest);
UdiInfoEntity getDiProductDetail(String uuid);
/** 根据ID查询 */
ThrProductsAddDiEntity filterThrProductsGetId( Integer id);
}

@ -97,4 +97,9 @@ public class ThrProductsAddDiServiceImpl implements ThrProductsAddDiService {
public UdiInfoEntity getDiProductDetail(String uuid) {
return thrProductsAddDiDao.getDiProductDetail(uuid);
}
@Override
public ThrProductsAddDiEntity filterThrProductsGetId(Integer id) {
return thrProductsAddDiDao.filterThrProductsGetId(id);
}
}

@ -306,6 +306,7 @@
</if>
</where>
Group by basic_udirel.uuid
ORDER BY modifyTime DESC
</select>

@ -71,6 +71,14 @@
where id = #{id}
</delete>
<select id="filterThrProductsGetId" parameterType="integer" resultType="com.glxp.sale.admin.entity.thrsys.ThrProductsAddDiEntity">
select *
from thr_products_add_di
where id = #{id}
</select>
<select id="filterThrProductsList" parameterType="com.glxp.sale.admin.req.thrsys.FilterThrProductsRequest"
resultType="com.glxp.sale.admin.res.thrsys.ThrProductsAddDiResponse">
SELECT tdi.*,

Loading…
Cancel
Save