提交 08fe4f35 编写于 作者: ibizdev's avatar ibizdev

ibizdev提交

上级 bf1ad6f9
......@@ -40,14 +40,6 @@
mvn install
cd ..
mvn install
cd ps-app/ps-app-web
mvn clean package -Pprod
echo 'echo "$para1"' > apppasswd.sh
chmod -R 777 *
setsid env SSH_ASKPASS='./apppasswd.sh' DISPLAY='none:0' ssh root@172.16.102.61 "mkdir -p /ibiz/nodes/node1/7B163728-8A01-45A9-862D-13C620F053F6"
setsid env SSH_ASKPASS='./apppasswd.sh' DISPLAY='none:0' scp -r ./target/ps-app-web.jar root@172.16.102.61:/ibiz/nodes/node1/7B163728-8A01-45A9-862D-13C620F053F6
setsid env SSH_ASKPASS='./apppasswd.sh' DISPLAY='none:0' ssh root@172.16.102.61 "ps -ef | grep '/ibiz/nodes/node1/7B163728-8A01-45A9-862D-13C620F053F6'| tr -s ' '|cut -d' ' -f2,8,9 | grep -v grep | grep 'jar' | cut -d' ' -f1|xargs --no-run-if-empty kill -9"
setsid env SSH_ASKPASS='./apppasswd.sh' DISPLAY='none:0' ssh root@172.16.102.61 "source /etc/profile;source ~/.bash_profile; nohup java -jar -Xms512m -Xmx1024m -XX:PermSize=128M -XX:MaxPermSize=128m /ibiz/nodes/node1/7B163728-8A01-45A9-862D-13C620F053F6/ps-app-web.jar >>/ibiz/nodes/node1/7B163728-8A01-45A9-862D-13C620F053F6/ps_appps 应用-`date --date='0 days ago' +%Y-%m-%d`.log 2>&1 &"
</command>
</hudson.tasks.Shell>
</builders>
......
......@@ -319,6 +319,14 @@ public class IMImpl implements IIM,Serializable{
@JsonIgnore
public boolean pSIdDirtyFlag;
/**
* REST
*/
public String rest;
@JsonIgnore
public boolean restDirtyFlag;
/**
* 获取 [跨公司领导人员清单]
*/
......@@ -1244,4 +1252,29 @@ public class IMImpl implements IIM,Serializable{
return this.pSIdDirtyFlag ;
}
/**
* 获取 [REST]
*/
@JsonProperty("rest")
public String getRest(){
return this.rest ;
}
/**
* 设置 [REST]
*/
@JsonProperty("rest")
public void setRest(String rest){
this.rest = rest ;
this.restDirtyFlag = true ;
}
/**
* 获取 [REST]脏标记
*/
@JsonIgnore
public boolean getRestDirtyFlag(){
return this.restDirtyFlag ;
}
}
......@@ -531,4 +531,18 @@ public interface IIM {
* 获取 [PSID]脏标记
*/
public boolean getPSIdDirtyFlag();
/**
* 获取 [REST]
*/
public void setRest(String rest);
/**
* 设置 [REST]
*/
public String getRest();
/**
* 获取 [REST]脏标记
*/
public boolean getRestDirtyFlag();
}
......@@ -356,6 +356,15 @@ public class IM implements Serializable {
@JSONField(serialize=false)
private boolean pSIdDirtyFlag;
/**
* REST
*/
private String rest;
@JsonIgnore
@JSONField(serialize=false)
private boolean restDirtyFlag;
/**
* 获取 [跨公司领导人员清单]
......@@ -1356,6 +1365,33 @@ public class IM implements Serializable {
public boolean getPSIdDirtyFlag(){
return this.pSIdDirtyFlag ;
}
/**
* 获取 [REST]
*/
@JsonProperty("rest")
@JSONField(name="rest")
public String getRest(){
return this.rest ;
}
/**
* 设置 [REST]
*/
@JsonProperty("rest")
@JSONField(name="rest")
public void setRest(String rest){
this.rest = rest ;
this.restDirtyFlag = true ;
}
/**
* 获取 [REST]脏标记
*/
@JsonIgnore
@JSONField(serialize=false)
public boolean getRestDirtyFlag(){
return this.restDirtyFlag ;
}
}
......@@ -202,6 +202,8 @@ public class IMServiceImpl implements IIMService {
model.setNgrq(domain.getNgrq());
if(domain.getPSIdDirtyFlag())
model.setPSId(domain.getPSId());
if(domain.getRestDirtyFlag())
model.setRest(domain.getRest());
return model ;
}
......@@ -286,6 +288,8 @@ public class IMServiceImpl implements IIMService {
domain.setNgrq(model.getNgrq());
if(model.getPSIdDirtyFlag())
domain.setPSId(model.getPSId());
if(model.getRestDirtyFlag())
domain.setRest(model.getRest());
return domain ;
}
......
package com.ibiz.core.module2.valuerule.anno.im;
import com.ibiz.core.module2.valuerule.validator.im.IMRestDefaultValidator;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;
/**
* 值规则注解
* 实体:IM
* 属性:Rest
* 值规则:Default
*/
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {IMRestDefaultValidator.class})
public @interface IMRestDefault {
//是否默认检查
boolean flag() default true;
//值规则名称
String info() default "默认规则";
//值规则信息,如果为空,使用值规则名称。
String message() default "内容长度必须小于等于[2000]";
Class<?>[] groups() default {};
Class<? extends Payload>[] payload() default {};
}
package com.ibiz.core.module2.valuerule.validator.im;
import lombok.extern.slf4j.Slf4j;
import com.ibiz.util.valuerule.DefaultValueRule;
import com.ibiz.util.valuerule.VRCondition;
import com.ibiz.util.valuerule.condition.*;
import com.ibiz.core.module2.valuerule.anno.im.IMRestDefault;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import java.math.BigDecimal;
/**
* 值规则注解解析类
* 实体:IM
* 属性:Rest
* 值规则:Default
* 值规则信息:内容长度必须小于等于[2000]
*/
@Slf4j
@Component("IMRestDefaultValidator")
public class IMRestDefaultValidator implements ConstraintValidator<IMRestDefault, String>,Validator {
private static final String MESSAGE = "值规则校验失败:【内容长度必须小于等于[2000]】";
@Override
public boolean isValid(String value, ConstraintValidatorContext context) {
boolean isValid = doValidate(value);
if(!isValid) {
context.disableDefaultConstraintViolation();
context.buildConstraintViolationWithTemplate(MESSAGE)
.addConstraintViolation();
}
return doValidate(value);
}
@Override
public boolean supports(Class<?> aClass) {
return true;
}
@Override
public void validate(Object o, Errors errors) {
if( o!=null && supports(o.getClass())){
if (!doValidate((String) o)){
errors.reject(MESSAGE);
}
}
}
public boolean doValidate(String value) {
DefaultValueRule<String> valueRule = new DefaultValueRule<>("默认值规则",MESSAGE,"Rest",value)
//字符串长度,重复检查模式,重复值范围,基础值规则,是否递归检查。
.init(2000,"NONE",null,null,false);
return valueRule.isValid();
}
}
......@@ -27,6 +27,7 @@ ruleflow-group "pscreateandstartimprepareparam1"
pscreateandstartimim.setSjbm(0);
pscreateandstartimim.setSblb("10");
pscreateandstartimim.setSblx("10");
pscreateandstartimim.setRest("{}");
update(pscreateandstartimdefault);//更新fact中变量值
update(pscreateandstartimim);//更新fact中变量值
end
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册