|
|
@@ -65,10 +65,6 @@ public class Resumption extends BaseEntity {
|
|
|
*/
|
|
|
private Integer type;
|
|
|
|
|
|
- /**
|
|
|
- * 表单类型
|
|
|
- */
|
|
|
-// private FormType formType;
|
|
|
|
|
|
/**
|
|
|
* 异常数目
|
|
|
@@ -166,62 +162,6 @@ public class Resumption extends BaseEntity {
|
|
|
public Resumption() {
|
|
|
}
|
|
|
|
|
|
-// public Resumption(final String id) {
|
|
|
-// this.id = id;
|
|
|
-// }
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 设置为未提交
|
|
|
- */
|
|
|
-// public void notSubmit() {
|
|
|
-// this.status = ResumptionStatus.NOT;
|
|
|
-// this.registerEvent(ResumptionStatusChangeEvent.to(this));
|
|
|
-// }
|
|
|
-
|
|
|
- /**
|
|
|
- * 提交
|
|
|
- *
|
|
|
- * @param exceptionCount 错误数量
|
|
|
- */
|
|
|
-// public void submit(final int exceptionCount) {
|
|
|
-// //this.submitTime = new Date();
|
|
|
-// //this.status = exceptionCount > 0 ? ResumptionStatus.ERROR : ResumptionStatus.NORMAL;
|
|
|
-// this.exceptionCount = exceptionCount;
|
|
|
-// this.registerEvent(ResumptionStatusChangeEvent.to(this));
|
|
|
-// this.registerEvent(new ResumptionOverviewChangeEvent(
|
|
|
-// this.getOrgId(),
|
|
|
-// this.type,
|
|
|
-// this.formType,
|
|
|
-// ResumptionStatus.DELAY.equals(this.status),
|
|
|
-// this.type.getOverview(this.formType),
|
|
|
-// this.ymd
|
|
|
-// ));
|
|
|
-// }
|
|
|
-
|
|
|
- /**
|
|
|
- * @return
|
|
|
- */
|
|
|
-// public String summary() {
|
|
|
-// switch (this.type) {
|
|
|
-// case DAY:
|
|
|
-// return String.format("%s-%s-%s %s", this.ymd.getYear(), this.ymd.getMonth(), this.ymd.getDay());
|
|
|
-// case WEEK:
|
|
|
-// return String.format("%s 第%s周 %s", this.ymd.getYear(), this.ymd.getWeek());
|
|
|
-// case MONTH:
|
|
|
-// return String.format("%s-%s %s", this.ymd.getYear(), this.ymd.getMonth());
|
|
|
-// case QUARTER:
|
|
|
-// return String.format("%s 第%s季 %s", this.ymd.getYear(), this.ymd.getQuarter());
|
|
|
-// case HALFYEAR:
|
|
|
-// if(this.ymd.getHalfyear().intValue() == 1){
|
|
|
-// return String.format("%s 上半年 %s", this.ymd.getYear());
|
|
|
-// }else{
|
|
|
-// return String.format("%s 下半年 %s", this.ymd.getYear());
|
|
|
-// }
|
|
|
-// default:
|
|
|
-// return String.format("%s 年 %s", this.ymd.getYear());
|
|
|
-// }
|
|
|
-// }
|
|
|
|
|
|
/**
|
|
|
* 是否提交
|
|
|
@@ -234,34 +174,5 @@ public class Resumption extends BaseEntity {
|
|
|
*
|
|
|
* @param isWork
|
|
|
*/
|
|
|
-// public void changeWork(final Boolean isWork) {
|
|
|
-// final ResumptionStatus old = this.status;
|
|
|
-// // 再次变更, 如果营业
|
|
|
-// if (isWork) {
|
|
|
-// // 过期,除了已提交的都是未提交
|
|
|
-// if (this.type.isExpire(this.ymd)) {
|
|
|
-// switch (this.status) {
|
|
|
-// case ERROR:
|
|
|
-// case NORMAL:
|
|
|
-// break;
|
|
|
-// default:
|
|
|
-// this.setStatus(ResumptionStatus.NOT);
|
|
|
-// }
|
|
|
-// }
|
|
|
-// // 未过期, 如果是歇业或者未提交, 那么变成待履职
|
|
|
-// else {
|
|
|
-// switch (this.status) {
|
|
|
-// case NA:
|
|
|
-// case NOT:
|
|
|
-// this.setStatus(ResumptionStatus.WAIT);
|
|
|
-// break;
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
-// // 再次变更, 如果歇业
|
|
|
-// else {
|
|
|
-// this.setStatus(ResumptionStatus.NA);
|
|
|
-// }
|
|
|
-//// RESUMPTIONLOG.info("[ {} ]履职旧状态[ {} ] => [ {} ]", this.id, old, this.status);
|
|
|
-// }
|
|
|
+
|
|
|
}
|