Commit 15fa4f4b by 高晓磊

流域类型的采区不新增预警设置

parent 2b8acfdb
...@@ -5,6 +5,7 @@ import java.util.HashMap; ...@@ -5,6 +5,7 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
import com.xyst.dinas.biz.enumeration.SandMiningAreaTypeEnum;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.json.JSONObject; import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -73,7 +74,7 @@ public class SandMiningAreaServiceImpl implements SandMiningAreaService { ...@@ -73,7 +74,7 @@ public class SandMiningAreaServiceImpl implements SandMiningAreaService {
@Override @Override
public void update(KObject kobject) { public void update(KObject kobject) {
sandMiningAreaDao.modify(kobject); sandMiningAreaDao.modify(kobject);
if(2==kobject.getInt("status")){ if(2==kobject.getInt("status")&& 0 < SandMiningAreaTypeEnum.WATERSHED.getValue()){
//新建采区后同步新建一条预警设置 //新建采区后同步新建一条预警设置
WarnSettingEntity warnSetting = new WarnSettingEntity(); WarnSettingEntity warnSetting = new WarnSettingEntity();
warnSetting.setBillType(SandMiningAreaConstant.SAND_MINING_AREA_BILL_TYPE); 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