提交 6c56f13b authored 作者: chenshiying's avatar chenshiying

[新增] 廊坊生成大小类管理问题sql

上级 0d7dfbd6
......@@ -12,6 +12,13 @@ public class CommandManualDTO implements Serializable {
private static final long serialVersionUID = -6587921299183759035L;
/**
* 大类ID
*/
private String bigTypeId;
@ApiModelProperty(value = "大类代码")
@ExcelField(title = "大类代码", sort = 1)
private String bigTypeCode;
......@@ -66,6 +73,14 @@ public class CommandManualDTO implements Serializable {
private String bigAndSmallCode;
public String getBigTypeId() {
return bigTypeId;
}
public void setBigTypeId(String bigTypeId) {
this.bigTypeId = bigTypeId;
}
public String getBigTypeCode() {
return bigTypeCode;
}
......
......@@ -42,15 +42,15 @@ INSERT INTO `digital_command_manual`(
`update_time`
)
VALUES (
'1',
'${caseType}',
NULL,
NULL,
'${bigTypeName}', -- 你的大类
'${bigTypeCode}', -- 大类的编码
'${bigTypeId}', -- 大类的编码
'${smallTypeName}', -- 你的小类
'${smallTypeCode}', -- 小类的编码
NULL, -- 小类的编码 先设置为null 后面用脚本刷小类id
NULL,
'施工过程中或者施工堆料未采取有效防尘措施造成扬尘现象', -- 管理问题
'${manageProblem}', -- 管理问题
${alimit}, -- A 类处置时限
${aunit}, -- 0:工作日,1:工作时, 2:紧急工作时
${blimit}, -- B 类处置时限
......
update digital_command_manual
set small_type_id = (select casetype.id from base_base_casetype casetype where casetype.parent_id = '${bigTypeId}' and obj_name= '${smallTypeName}')
where big_type = '${bigTypeName}' and small_type = '${smallTypeName}' and manage_problem = '${manageProblem}';
......@@ -25,7 +25,7 @@ INSERT INTO `base_base_casetype`(
VALUES (
'${smallTypeCode}', -- 小类编码,自己取一个
'${smallTypeName}', -- 修改你的小类
'${bigTypeCode}', -- 大类的 id
'${bigTypeId}', -- 大类的 id
'',
'',
'',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论