main
黄海 1 year ago
parent 22704b9dd2
commit baa334550f

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

@ -1109,10 +1109,14 @@ public class CollectController extends Controller {
Record rs = personModel.getLoginInfoByPersonId(person_id);
String bureau_id = rs.getStr("bureau_id");
int job_id = getInt("job_id");
int target_type_id = cm.getJob(job_id).getInt("target_type_id");
String target_id = bureau_id;
if (target_type_id == 2) target_id = person_id;
String input_id = get("input_id");
int type_id = getInt("type_id");
//记录到数据库
cm.saveUploadFile(job_id, input_id, type_id, bureau_id, person_id, fileName, file_id, suffix, file_size);
cm.saveUploadFile(job_id, input_id, type_id, target_id, person_id, fileName, file_id, suffix, file_size);
//返回结果
Kv kv = Kv.by("success", true);
kv.set("message", "上传成功!");

@ -1848,18 +1848,18 @@ public class CollectModel {
* @param job_id
* @param input_id
* @param type_id
* @param bureau_id
* @param target_id
* @param person_id
* @param fileName
* @param file_id
* @param suffix
* @param file_size
*/
public int saveUploadFile(int job_id, String input_id, int type_id, String bureau_id, String person_id, String
public int saveUploadFile(int job_id, String input_id, int type_id, String target_id, String person_id, String
fileName, String file_id, String suffix, String file_size) {
Record record = new Record();
record.set("job_id", job_id);
record.set("bureau_id", bureau_id);
record.set("target_id", target_id);
record.set("person_id", person_id);
record.set("fileName", fileName);
record.set("file_id", file_id);

Loading…
Cancel
Save