Commit 37c09ea0 by 高晓磊

禁采区也不能有预警设置

parent 78236d1f
......@@ -74,7 +74,7 @@ public class SandMiningAreaServiceImpl implements SandMiningAreaService {
@Override
public void update(KObject kobject) {
sandMiningAreaDao.modify(kobject);
if(2==kobject.getInt("status")&& 0 < SandMiningAreaTypeEnum.WATERSHED.getValue()){
if(2==kobject.getInt("status")&& 0 != SandMiningAreaTypeEnum.WATERSHED.getValue()&&2!=SandMiningAreaTypeEnum.WATERSHED.getValue()){
//新建采区后同步新建一条预警设置
WarnSettingEntity warnSetting = new WarnSettingEntity();
warnSetting.setBillType(SandMiningAreaConstant.SAND_MINING_AREA_BILL_TYPE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment