2023年6月9日 修改定时任务的问题

This commit is contained in:
bai 2023-06-09 15:41:32 +08:00
parent 9c6ae5a93e
commit 5310e02ebb
2 changed files with 10 additions and 7 deletions

View File

@ -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")

View File

@ -38,15 +38,18 @@ public class XxhbtkxxServiceImpl extends ServiceImpl<XxhbtkxxMapper, Xxhbtkxx> i
}
// SQL1UPDATE 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);
// SQL2UPDATE xxhbtkxx set jc = replace( jc,'-', '、')5-6 -> 56
UpdateWrapper<Xxhbtkxx> upw2 = new UpdateWrapper<>();
upw2.setSql("jc = replace( jc,'-', '、')");
//upw2.setSql("jc = replace( jc,'-', '、')");
upw2.set("jc","replace( jc,'-', '、')");
update(upw2);
//56 -> 0506
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 ), '、' )"+