|
@@ -16,8 +16,11 @@ import org.springframework.util.StringUtils;
|
|
|
import com.xt.jygl.common.BaseWebCtl;
|
|
|
import com.xt.jygl.common.Utils;
|
|
|
import com.xt.jygl.gkjcxx.gk.entity.GkEntity;
|
|
|
+import com.xt.jygl.gkjcxx.gk.service.GkService;
|
|
|
import com.xt.jygl.gkjcxx.gq.entity.GqEntity;
|
|
|
+import com.xt.jygl.gkjcxx.gq.service.GqService;
|
|
|
import com.xt.jygl.gkjcxx.mt.entity.MtEntity;
|
|
|
+import com.xt.jygl.gkjcxx.mt.service.MtService;
|
|
|
import com.xt.jygl.gkjygl.cghzyxxgl.dcsb.entity.DcsbEntity;
|
|
|
import com.xt.jygl.gkjygl.cghzyxxgl.dcsb.service.DcsbService;
|
|
|
import com.xt.jygl.gkjygl.gkjyr.jyrjbxx.entity.BwEntity;
|
|
@@ -38,6 +41,12 @@ public class DcsbWebService extends BaseWebCtl {
|
|
|
|
|
|
@Autowired
|
|
|
private DcsbService dcsbService;
|
|
|
+ @Autowired
|
|
|
+ private GkService gkService;
|
|
|
+ @Autowired
|
|
|
+ private MtService mtService;
|
|
|
+ @Autowired
|
|
|
+ private GqService gqService;
|
|
|
|
|
|
public boolean queryUser(String userCode, String pwd) {
|
|
|
pwd = SHA256Encrypt(pwd);
|
|
@@ -168,7 +177,8 @@ public class DcsbWebService extends BaseWebCtl {
|
|
|
* @return
|
|
|
*/
|
|
|
public List<GkEntity> getGkBySzd(String szdId) {
|
|
|
- return null;
|
|
|
+ List<GkEntity> list = gkService.findBySzd(szdId);
|
|
|
+ return list;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -177,8 +187,9 @@ public class DcsbWebService extends BaseWebCtl {
|
|
|
* @param gkId
|
|
|
* @return
|
|
|
*/
|
|
|
- public List<GqEntity> getGqByGk(String gkId) {
|
|
|
- return null;
|
|
|
+ public List<GqEntity> getGqByGk(String szdId, String gkId) {
|
|
|
+ List<GqEntity> list = gqService.findAllBySzdAndGk(szdId, gkId);
|
|
|
+ return list;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -188,7 +199,8 @@ public class DcsbWebService extends BaseWebCtl {
|
|
|
* @return
|
|
|
*/
|
|
|
public List<MtEntity> getMtByJyr(String jyrid) {
|
|
|
- return null;
|
|
|
+ List<MtEntity> list = mtService.findByJyrid(jyrid);
|
|
|
+ return list;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -207,7 +219,13 @@ public class DcsbWebService extends BaseWebCtl {
|
|
|
* @return
|
|
|
*/
|
|
|
public List<CodeEntity> getHwzl(String id) {
|
|
|
- return null;
|
|
|
+ List<CodeEntity> list = new ArrayList<CodeEntity>();
|
|
|
+ if (StringUtils.isEmpty(id)) {
|
|
|
+ list = securityMgr.codeService().findValidCodesByPid("72");
|
|
|
+ } else {
|
|
|
+ list = securityMgr.codeService().findByPid(id);
|
|
|
+ }
|
|
|
+ return list;
|
|
|
}
|
|
|
|
|
|
}
|