2023年6月9日 修改定时任务的问题
This commit is contained in:
parent
9c6ae5a93e
commit
5310e02ebb
|
@ -168,10 +168,10 @@ public class TJwKckb {
|
|||
@Excel(name = "xqbh", width = 15)
|
||||
@ApiModelProperty(value = "xqbh")
|
||||
private java.lang.String xqbh;
|
||||
/**bh*/
|
||||
@Excel(name = "bh", width = 15)
|
||||
@ApiModelProperty(value = "bh")
|
||||
private java.lang.String bh;
|
||||
// /**bh*/
|
||||
// @Excel(name = "bh", width = 15)
|
||||
// @ApiModelProperty(value = "bh")
|
||||
// private java.lang.String bh;
|
||||
/**jxdgnr*/
|
||||
@Excel(name = "jxdgnr", width = 15)
|
||||
@ApiModelProperty(value = "jxdgnr")
|
||||
|
|
|
@ -38,15 +38,18 @@ public class XxhbtkxxServiceImpl extends ServiceImpl<XxhbtkxxMapper, Xxhbtkxx> i
|
|||
}
|
||||
// SQL1:UPDATE xxhbtkxx set jc = replace( convert(jc using ascii),'?', '')【第5-6节 -> 5-6】
|
||||
UpdateWrapper<Xxhbtkxx> upw1 = new UpdateWrapper<>();
|
||||
upw1.setSql("jc = replace( convert(jc using ascii),'?', '')");
|
||||
//upw1.setSql("jc = replace( convert(jc using ascii),'?', '')");
|
||||
upw1.set("jc","replace( convert(jc using ascii),'?', '')");
|
||||
update(upw1);
|
||||
// SQL2:UPDATE xxhbtkxx set jc = replace( jc,'-', '、')【5-6 -> 5、6】
|
||||
UpdateWrapper<Xxhbtkxx> upw2 = new UpdateWrapper<>();
|
||||
upw2.setSql("jc = replace( jc,'-', '、')");
|
||||
//upw2.setSql("jc = replace( jc,'-', '、')");
|
||||
upw2.set("jc","replace( jc,'-', '、')");
|
||||
update(upw2);
|
||||
//将【5、6 -> 05、06】
|
||||
UpdateWrapper<Xxhbtkxx> upw3 = new UpdateWrapper<>();
|
||||
upw3.setSql("jc = CONCAT("+
|
||||
upw3.set("jc",
|
||||
"CONCAT("+
|
||||
"CASE"+
|
||||
"WHEN POSITION( '、' IN jc ) = 2 THEN concat( '0', substr( jc, 1, 1 ), '、' )"+
|
||||
"WHEN POSITION( '、' IN jc ) = 3 THEN concat( '0', substr( jc, 1, 2 ), '、' )"+
|
||||
|
|
Loading…
Reference in New Issue