fix:载体维修修改

pg_adapter
wangxy 7 months ago
parent e64d45013d
commit 58a5703167

@ -55,7 +55,7 @@ public class TdChecknumController extends BaseController{
return AjaxResult.success(tdNotifyService.selectCountNotifyList());
}
private List<String> checkResult = Arrays.asList("通过", "未通过","待检查");
private List<String> checkResult = Arrays.asList("通过", "未通过","待检查","已保存");
private List<String> checkType = Arrays.asList("自行检查", "保密局检查");
@ -75,8 +75,10 @@ public class TdChecknumController extends BaseController{
value.set(checkResultCountDTO.getTg());
}else if("未通过".equals(name)){
value.set(checkResultCountDTO.getWtg());
}else{
}else if("待检查".equals(name)){
value.set(checkResultCountDTO.getDjc());
}else{
value.set(checkResultCountDTO.getYbc());
}
JSONObject jsonObject = new JSONObject();
jsonObject.put("value", value.get());
@ -120,9 +122,9 @@ public class TdChecknumController extends BaseController{
*
* @return
*/
@PostMapping("/countType")
@PostMapping("/countCheckType")
@ResponseBody
public AjaxResult countType() {
public AjaxResult countCheckType() {
SysDictData sysDictData = new SysDictData();
sysDictData.setDictType("sys_check_type");
List<SysDictData> smType = dictDataService.selectDictDataList(sysDictData);

@ -18,4 +18,7 @@ public class CheckResultCountDTO implements Serializable {
@ApiModelProperty(value = "待检查")
private Integer djc;
@ApiModelProperty(value = "已保存")
private Integer ybc;
}

@ -76,7 +76,8 @@
SELECT
SUM (CASE WHEN check_state = 0 THEN 1 ELSE 0 END) AS tg,
SUM (CASE WHEN check_state = 1 THEN 1 ELSE 0 END) AS wtg,
SUM (CASE WHEN check_state = 2 THEN 1 ELSE 0 END) AS djc
SUM (CASE WHEN check_state = 2 THEN 1 ELSE 0 END) AS djc,
SUM (CASE WHEN check_state = 3 THEN 1 ELSE 0 END) AS ybc
from td_check_report
</select>

Loading…
Cancel
Save