修复bug
This commit is contained in:
@@ -71,6 +71,7 @@ public interface IndustryMaterialMapper
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteIndustryMaterialByIds(String[] ids);
|
public int deleteIndustryMaterialByIds(String[] ids);
|
||||||
|
public int deleteMaterialById(String id);
|
||||||
|
|
||||||
|
|
||||||
List<IndustryMaterialVo> selectIndustryMaterialByBatchId(Long batchId);
|
List<IndustryMaterialVo> selectIndustryMaterialByBatchId(Long batchId);
|
||||||
|
|||||||
@@ -227,10 +227,9 @@ public class IndustryMaterialServiceImpl implements IIndustryMaterialService {
|
|||||||
}
|
}
|
||||||
if (id.equals(redisCache.getCacheObject("rightId"))) {
|
if (id.equals(redisCache.getCacheObject("rightId"))) {
|
||||||
redisCache.deleteObject("rightId");
|
redisCache.deleteObject("rightId");
|
||||||
|
|
||||||
s7PLC.writeString("DB44.30","\u0000\u0000\u0000\u0000");
|
s7PLC.writeString("DB44.30","\u0000\u0000\u0000\u0000");
|
||||||
}
|
}
|
||||||
industryMaterialMapper.deleteIndustryMaterialById(id);
|
industryMaterialMapper.deleteMaterialById(id);
|
||||||
List<IndustryMaterialVo> industryMaterialVos = industryMaterialMapper.selectIndustryMaterialByBatchId(batchId);
|
List<IndustryMaterialVo> industryMaterialVos = industryMaterialMapper.selectIndustryMaterialByBatchId(batchId);
|
||||||
// 进行重新排列
|
// 进行重新排列
|
||||||
for (int i = 1; i <= industryMaterialVos.size(); i++) {
|
for (int i = 1; i <= industryMaterialVos.size(); i++) {
|
||||||
|
|||||||
@@ -381,6 +381,12 @@
|
|||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
<delete id="deleteMaterialById" parameterType="String">
|
||||||
|
delete from industry_material where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteIndustryMaterialByState" parameterType="Long">
|
<delete id="deleteIndustryMaterialByState" parameterType="Long">
|
||||||
delete from industry_material where state = #{state}
|
delete from industry_material where state = #{state}
|
||||||
|
|||||||
Reference in New Issue
Block a user